0.12.0
0.12.0 - Single stepping battle
Changes
- GUI:
- Added 'Next turn' button beside the pause button in with the control panel to useful for single-stepping a
battle, e.g. when debugging your bot. - Improvements to the battle dialog for selecting game type and bots for a new battle.
- Added button for setting up rules.
- Added tooltip texts.
- Added 'Next turn' button beside the pause button in with the control panel to useful for single-stepping a
- Protocol: Removal of rgb-value type from the protocol of Bot APIs.
- Bot API: The
Color.fromRgb()
has been replaced byColor.fromString()
.
Bugfixes
- Bot API: Make sure the bot terminates (system exit) upon a connection error to prevent dangling bot processes, which is
usually occurring when terminating the UI, which closes the bot connections. - GUI: When dragging the battle arena, the graphics were not updated while dragging.
Documentation
You can read more about Robocode Tank Royale here:
https://robocode-dev.github.io/tank-royale/
Running Robocode
You need Java 11 as a minimum or newer to be preinstalled on your system. I recommend newer versions of Java, e.g. version 18.
You can read the installation guide to get more details about installing Java and Robocode.
The Robocode GUI application must be run from the command line in order to start and view battles:
java -jar robocode-tankroyale-gui-0.12.0.jar
robocode-tankroyale-gui-0.12.0.jar
Note that you need to download sample bots and install those into directories on your system, and add these directories from the menu:
Config → Bot Root Directories
Sample bots
These sample bots are currently available:
C#: sample-bots-csharp-0.12.0.zip
Java: sample-bots-java-0.12.0.zip
Note that the C# bots need Microsoft .Net SDK 5.0 or newer and must be preinstalled.
Bot API
In order to develop bots for Robocode, you'll need one of the provided APIs for the Java/JVM or .Net platform.
Java:
Available as a jar file: robocode-tankroyale-bot-api-0.12.0.jar
Available as an artifact on the Maven repository:
<dependency>
<groupId>dev.robocode.tankroyale</groupId>
<artifactId>robocode-tankroyale-bot-api</artifactId>
<version>0.12.0</version>
</dependency>
.Net:
Available as artifact on the Nuget repository:
https://www.nuget.org/packages/Robocode.TankRoyale.BotApi/0.12.0
dotnet add package Robocode.TankRoyale.BotApi --version 0.12.0