0.36.1
π¦ 0.36.1 - WonRoundEvent and Python Console Output - 24-Feb-2026
π Bug Fixes
-
Bot API (.NET):
- #188: Fixed thread-safety issue in
RecordingTextWriterwhere concurrentConsole.WriteLinecalls from event
handlers (e.g.,OnScannedBot) could cause race conditions, leading to performance degradation, radar lock loss,
and eventual event queue overflow ("Maximum event queue size has been reached: 256"). The fix adds proper locking
around all write and read operations, matching the thread-safety pattern used in the Java implementation. - Added thread-safety test to verify
RecordingTextWriterhandles concurrent writes correctly.
- #188: Fixed thread-safety issue in
-
Bot APIs (Java, C#, Python):
- #190: Fixed
WonRoundEventnot being triggered when a bot wins a round. TheonWonRound()handler is now invoked
even if the server doesn't send a separateWonRoundEvent, by checking the rank inRoundEndedEventand
publishingWonRoundEventwhen rank equals 1.
- #190: Fixed
-
Bot API (Python):
- Implemented missing stdout/stderr redirection to bot console. Python bots can now use
print()statements and see
output in the Bot Console, matching Java and C# functionality. This feature was missing since v0.19.0.
- Implemented missing stdout/stderr redirection to bot console. Python bots can now use
-
Bot API (All platforms):
- Fixed the one-by-one error in the event queue size check. The queue now correctly enforces a maximum of 256 events
instead of allowing 257 events before showing the error message. Changed the boundary check from
<= MAX_QUEUE_SIZEto< MAX_QUEUE_SIZEin Java, .NET, and Python implementations.
- Fixed the one-by-one error in the event queue size check. The queue now correctly enforces a maximum of 256 events
Robocode Tank Royale 0.36.1
π Quick Start
New to Robocode Tank Royale?
- Install Java 11+ β Download GUI β Get sample bots β Start battling!
π Complete documentation: robocode.dev | Advanced strategies: book.robocode.dev
π Installing Robocode
Requirements: Java 11+ (whichjdk.com) | Detailed setup: robocode.dev/installation
Choose Your Installation Method
You have two options to install and run the Robocode GUI:
- Native Installers (Recommended) β Installs as a native application with desktop shortcuts
- Portable JAR File β Run directly from the command line without installation
Both options require Java 11 or newer.
Option 1: Native Installers (Recommended)
Download for your platform:
| Platform | Installer |
|---|---|
| πͺ Windows | robocode-tank-royale-gui-0.36.1.msi |
| π macOS | robocode-tank-royale-gui-0.36.1.pkg |
| π§ Linux | robocode-tank-royale-gui-0.36.1.rpm (RPM) / robocode-tank-royale-gui-0.36.1.deb (DEB) |
β οΈ Note: Installers are unsigned (normal for open-source projects). Your OS may show security warnings - choose "Run anyway" or similar. Verify using SHA256SUMS if needed.
Option 2: Portable JAR File
Download: robocode-tankroyale-gui-0.36.1.jar
Running: java -jar robocode-tankroyale-gui-0.36.1.jar
π Tip: Create a dedicated folder for better organization. See GUI documentation for details.
π€ Sample Bots
Download pre-built bots to start battling immediately:
- Download the archive for your preferred language
- Extract to a directory (e.g.,
C:\Robocode\bots\python) - In GUI: Config β Bot Root Directories β Add the extracted directory
| Language | Download | Requirements |
|---|---|---|
| π Python | sample-bots-python-0.36.1.zip | Python 3.10 or newer |
| π· C# | sample-bots-csharp-0.36.1.zip | Microsoft .NET SDK 8 or newer |
| β Java | sample-bots-java-0.36.1.zip | Any Java SDK 11 or newer |
π¦ Bot API
Ready to develop your own bots? Install the API for your preferred language:
π Python
pip install robocode-tank-royale==0.36.1β Java
Maven:
<dependency>
<groupId>dev.robocode.tankroyale</groupId>
<artifactId>robocode-tankroyale-bot-api</artifactId>
<version>0.36.1</version>
</dependency>Gradle:
implementation 'dev.robocode.tankroyale:robocode-tankroyale-bot-api:0.36.1'Direct JAR: robocode-tankroyale-bot-api-0.36.1.jar
π· .NET (C#, F#, VB.NET)
dotnet add package Robocode.TankRoyale.BotApi --version 0.36.1More info: robocode.dev/bot-api | PyPI | Maven Central | NuGet
π Sound Effects
Enhance your Robocode experience with sound effects!
Download & Installation: Sounds Repository
Follow the repository instructions to install sounds in the correct location.
π Additional Resources
- Documentation: robocode.dev
- GitHub Repository: robocode-dev/tank-royale
- Issue Tracker: Report bugs or request features