Coder Social home page Coder Social logo

fortypercnt / fallchallenge2023-seabedsecurity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codingame/fallchallenge2023-seabedsecurity

4.0 0.0 1.0 5.69 MB

https://www.codingame.com/contests/fall-challenge-2023

JavaScript 5.90% Ruby 0.85% Python 1.08% Java 33.70% TypeScript 27.22% HTML 0.85% Smarty 30.40%

fallchallenge2023-seabedsecurity's Introduction

FallChallenge2023-SeabedSecurity

Source code for CodinGame's Fall Challenge 2023 event.

https://www.codingame.com/contests/fall-challenge-2023

Community starter AIs are located here:

https://github.com/CodinGame/FallChallenge2023-SeabedSecurity/tree/main/starterAIs

How to build from sources

Build with support for viewer

If you want to use the referee to view games in the browser locally, you have to compile some typescript files before building. If you only want to use the referee via command line interface (e.g. with cg-brutaltester), you can skip this.

cd src/main/resources/view
npm install
npm start
rm -fr node_modules

If you don't remove the node_modules directory then maven will add the whole lot to the jar file.

Build the jar

  1. Install Java 1.8 (JDK)
  2. Install Maven.
  3. Run in command line <path_to_maven>/mvn package inside root directory of this repo.
  4. The compiled jar is in ./target/

How to run

Use JRE 8 to avoid warnings/errors. JRE 11 works but with warnings. Later versions cause errors.

usage: -p1 <player1 command line> -p2 <player2 command line> [-s -l <File
           output for logs> -d <seed>]
 -d <arg>    Referee seed
 -h          Print the help
 -l <arg>    File output for logs
 -p1 <arg>   Required. Player 1 command line.
 -p2 <arg>   Required. Player 2 command line.
 -s          Server mode

E.g., to run the referee and watch the game in the browser:

java -jar ./fall23.jar -p1 "python bot1.py" -p2 "python bot2.py" -s

fallchallenge2023-seabedsecurity's People

Contributors

cgjupoulton avatar fortypercnt avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

egor-muratov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.