Run existing compiled Classic Robocode Java robots in Robocode Tank Royale. The bridge presents the Classic API to the unchanged robot jar and translates calls and events through Tank Royale's Java Bot API.
Start with the installation, first battle and troubleshooting guide. It covers downloading robocode-api-bridge-<version>.jar, the JDK requirement, finding an existing LiteRumble collection or Classic robot directory, generating a separate Tank Royale bot root, teams, upgrades and failure reports. Classic Robocode does not need to be installed or running.
- Command line:
java -jar robocode-api-bridge-<version>.jaranalyses existing robot jars and generates Tank Royale bot directories. It finds robot sources and installs the runtime and the Tank Royale Bot API it carries. - Runtime: runs inside each generated bot process. It presents the Classic
robocode.*API to the robot and translates it to Tank Royale. Its Maven Central coordinates aredev.robocode.tankroyale:robocode-api-bridge-runtime.
Behavioral fidelity is measured against Classic Robocode. Compatibility work is ongoing: completing a battle does not prove identical behavior or scores. Opponent names may be anonymous, and legacy strategies depending on real identities can behave differently. The user guide describes these and the sandbox limitations.
The architecture overview maps the runtime and evidence tiers. Follow the repository's agent instructions before changing code. The reproduced robocode.* API is a frozen binary contract.
Building needs a JDK 17 to 21 to run Gradle, with JDK 11 and JDK 17 installed for the build's toolchains. The bridge itself runs on JDK 11 or newer.
.\gradlew.bat :runtime:test :cli:test
.\gradlew.bat build-release smokeTestReleasebuild-release builds runtime/build/libs/robocode-api-bridge-runtime-<version>.jar and the executable cli/build/libs/robocode-api-bridge-<version>.jar, with sources and Javadoc. It never publishes. Publishing to Maven Central is a separate, explicitly authorized release step.