This repository contains our bot for the Tank Royale competition. The bot is written in Java and uses the state pattern to switch between different attack and defence techniques at runtime.
It also has everything necessary to run as a host for a Robocode Tank Royale competition. So other bots can be packaged and dropped into the bots
folder and it'll be picked up.
- Game type: Classic
- Arena size: 800x600
- Gun cooling rate: 0.1
- Number of rounds: 10
- Ready timeout (μs): 1,000,000
- Turn timeout (μs): 30,000
Unzip the included compiled sample bots
unzip sample-bots-java-0.19.2.zip -d $YourFolder
Run the host application
java -jar robocode-tankroyale-gui-0.19.2.jar
- Go to
Config->Bot root directories
and add the $YourFolder - Start the server
- Start game and set the mode to "classic", load all the bots you want to run and click start
- Ensure that you set compatibility mode to JDK 11. You'll need to produce a jar file in the final deliverable
- Ensure that your bot includes a .json file with the same name as the jar. Example here.
- Ensure that you have a .sh file with the command that would execute the jar file. See example here
Full instructions for the JVM is available in the official docs: https://robocode-dev.github.io/tank-royale/tutorial/jvm/my-first-bot-for-jvm.html