How to Run Ocean of Code github project Locally

If you want to run it locally you need to have JDK 1.8 (or higher) and Maven installed.

Then you need to do the following:

  • Run mvn clean install to install the required dependencies.

  • Run the src/test/java/Main.java which will dump the game summary on the stdout, and will also give you a web version to see the game in action (e.g. http://localhost:8888/test.html). Note: by default this runs the default dummy agent.

  • Write your own bot and update the src/test/java/Main.java to run it as an agent.

3 Likes