Coder Social home page Coder Social logo

fortypercnt / fallchallenge2022-keepoffthegrass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codingame/fallchallenge2022-keepoffthegrass

2.0 0.0 1.0 3.24 MB

JavaScript 2.12% Ruby 0.95% C++ 2.08% Python 1.17% Perl 1.14% Java 40.72% C# 2.49% TypeScript 29.83% Smarty 19.50%

fallchallenge2022-keepoffthegrass's Introduction

FallChallenge2022 - KeepOffTheGrass

Keep Off The Grass!

Source code for CodinGame's Fall Challenge 2022 event.

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

Community starter AIs are located here:

https://github.com/CodinGame/FallChallenge2022-KeepOffTheGrass/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 ./target/fall-challenge-2022-keep-off-the-grass-1.0-SNAPSHOT-shaded.jar

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 ./fall22.jar -p1 "python bot1.py" -p2 "python bot2.py" -s

fallchallenge2022-keepoffthegrass's People

Contributors

cafar avatar cgjupoulton avatar fortypercnt avatar seongs1024 avatar the-swine avatar

Stargazers

 avatar  avatar

Forkers

kekov

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.