Add curated legacy Robocode roster (28 bots) and Tank Royale booter

Curated roster: 34 classic-Robocode archives were downloaded, measured in real
Tank Royale battles and curated to 28 usable bots, now in legacy_bots/<Name>/
(<Name>.jar + <Name>.json + <Name>.sh) with checksums in MANIFEST.sha256.
Six were dropped as NOT_USEFUL and deleted from tr_bots/_salvage/legacy_bots/
and tr_bots/_salvage/tr_wrappers/, with the rationale recorded in
legacy_bots/README.md and tools/robocode_shim/LEGACY_BOTS.md:

  - Nene, Seraphim  - Azuma-framework melee bots, completely inert (0 scans,
                      0 shots); getRobotRunnable() returns null so the shim has
                      no driver path for them.
  - Aurora          - fires 6 shots and crawls.
  - FloodMini, LightningBug, Aristocles - near-stationary turrets: they scan and
                      fire but land 0 hits and take 10+ hits every round.

DrussGT is the reference bot and is deliberately NOT in legacy_bots/: it lives in
tr_bots/DrussGT and is now vendored with its sources under
tools/robocode_shim/vendor/drussgt/.

Repo-relative paths replace /tmp: every <Name>.sh resolves the shim and the
vendor jars via $REPO (../..), and none hardcodes a server URL, a /tmp data
path, or anything under ~/Downloads. SERVER_URL/SERVER_SECRET come from the
environment, which the booter populates from its own -Dserver.url /
-Dsystem.secret system properties.

Booter: tools/booter/robocode-tankroyale-booter-0.35.5-all.jar, copied from a
local tank-royale build, plus a README covering the real CLI. Note the command
is `boot`; the upstream README's `run` is stale. Verified it discovers all 28
kept bots via both `dir` and `info`.

Licensing: every third-party jar here reads "not stated in jar", and DrussGT is
GPL. The repo owner has explicitly waived this - the repository is PRIVATE and
lives on their own LAN. Do not mirror or redistribute without revisiting that.

.gitignore flipped back to tracking legacy_bots/**/*.jar; an over-broad *.jar
rule already cost us the only copy of DrussGT.jar once.
This commit is contained in:
2026-10-04 22:18:28 +02:00
parent 67d185880d
commit fe8b1eddff
126 changed files with 9274 additions and 210 deletions
+42 -21
View File
@@ -5,15 +5,28 @@ host any unmodified classic robot jar, not just DrussGT. This document is the
short version of how to use it and what was validated. The machine-readable
manifest is [`robots.json`](robots.json).
**No third-party jar is committed.** Every jar lives in `/tmp` and is referenced
by absolute path; the repo only contains the shim, the manifest and this doc.
**Legacy bot jars are NOT committed** — every one of them records
`"license": "not stated in jar"` in [`robots.json`](robots.json), and DrussGT is
documented as GPL. What IS committed, for all 28 bots, is the
`<Name>.sh` launcher, the `<Name>.json` bot descriptor, the checksums in
`legacy_bots/MANIFEST.sha256` and this documentation. Fetch the jars from
`http://robocode-archive.strangeautomata.com/robots/` and verify with
`sha256sum -c MANIFEST.sha256` — see [`legacy_bots/README.md`](../../legacy_bots/README.md).
This file is the engineering log; `legacy_bots/README.md` is the roster.
The runtime jars the shim links against (`robocode.jar`, the Tank Royale bot-api
jar) are vendored and tracked under `tools/robocode_shim/vendor/`.
## Direct answer
* **28 legacy champions are usable right now** (27 validated as effective +
DrussGT itself). A further **5 play but are weak/degraded** (they fire and
scan but landed 0 hits against the sample SpinBot). **2 fail** (Nene,
Seraphim — see below).
* **28 legacy champions are usable right now** and live in `legacy_bots/`
(26 validated as effective + `PatternRobot` and `KurtWaveSurfer`, which play
but are flagged weak). `DrussGT` itself is the reference bot and lives in
`tr_bots/DrussGT`.
* **6 were dropped** after measurement: `Nene`, `Seraphim` (inert, 0 shots —
see the missing-API note below), and `Aurora`, `FloodMini`, `LightningBug`,
`Aristocles` (fire but never move, 0 hits). Their jars and wrapper dirs were
deleted from `tr_bots/_salvage/`; see the "Removed" table in
[`legacy_bots/README.md`](../../legacy_bots/README.md).
* Cost to add the top remaining failures: **~2–4 h** to add a second driver path
for bots that implement `IBasicRobot` directly and return `null` from
`getRobotRunnable()` (this is the only hard blocker left; it unlocks Nene and
@@ -26,15 +39,15 @@ by absolute path; the repo only contains the shim, the manifest and this doc.
```bash
# 1. download the jar (the RoboRumble archive is browsable)
curl -Lo /tmp/bots/voidious.Diamond_1.8.28.jar \
curl -Lo legacy_bots/Diamond/Diamond.jar \
http://robocode-archive.strangeautomata.com/robots/voidious.Diamond_1.8.28.jar
# 2. generate the Tank Royale bot directory
tools/robocode_shim/make_botdir.sh Diamond \
--class voidious.Diamond --jar /tmp/bots/voidious.Diamond_1.8.28.jar
tools/robocode_shim/make_botdir.sh legacy_bots/Diamond \
--class voidious.Diamond --jar "$PWD/legacy_bots/Diamond/Diamond.jar"
# 3. prove it plays a real Tank Royale battle (2 rounds vs the sample SpinBot)
SHIM_BOTDIR=/tmp/tr_bots/Diamond tools/robocode_shim/run_bridge_battle.sh \
SHIM_BOTDIR=legacy_bots/Diamond tools/robocode_shim/run_bridge_battle.sh \
/home/davide/Projects/tank-royale/sample-bots/java/build/archive/SpinBot 2
```
@@ -61,14 +74,14 @@ does not need any extra environment variables.
### One-line smoke battle for any generated bot
```bash
SHIM_BOTDIR=/tmp/tr_bots/<Name> tools/robocode_shim/run_bridge_battle.sh \
SHIM_BOTDIR=legacy_bots/<Name> tools/robocode_shim/run_bridge_battle.sh \
/home/davide/Projects/tank-royale/sample-bots/java/build/archive/SpinBot 2
```
### Offline triage (no server, ~2 s per bot)
```bash
SHIM_BOT_JAR=/tmp/bots/<jar> SHIM_BOT_CLASS=<fqcn> tools/robocode_shim/run_smoke.sh
SHIM_BOT_JAR=legacy_bots/<Name>/<Name>.jar SHIM_BOT_CLASS=<fqcn> tools/robocode_shim/run_smoke.sh
```
> Caution: this synthetic harness has **false negatives** — Diamond, Dookious and
@@ -107,13 +120,21 @@ SHIM_BOT_JAR=/tmp/bots/<jar> SHIM_BOT_CLASS=<fqcn> tools/robocode_shim/run_smoke
| 25 | CigaretBH | mini bullet-hiding surfer | **WORKS** | 67 / 11 / 3 — split 1-1 |
| 26 | Komarious | mini pattern matcher / surfer | **WORKS** | 62 / 20 / 10 — split 1-1 |
| 27 | LionWWSVMvoid | wave-surfing SVM gun | **WORKS** | 62 / 12 / 12 — lost 0-2 |
| 28 | FloodMini | mini flood-fill movement | WORKS_WEAK | 25 / 0 / 10 — lost 0-2 |
| 29 | Aristocles | micro surfer | WORKS_WEAK | 39 / 0 / 10 — lost 0-2 |
| 30 | PatternRobot | simple pattern robot | WORKS_WEAK | 8 / 0 / 2 — lost 0-2 |
| 31 | LightningBug | pattern matcher | WORKS_WEAK | 36 / 0 / 10 — lost 0-2 |
| 32 | Aurora | micro (team-derived) | WORKS_WEAK | 6 / 0 / 13 — lost 0-2 |
| 33 | Nene | melee (Azuma framework) | **FAILS** | 0 / 0 / 14 — inert |
| 34 | Seraphim | melee (Azuma framework) | **FAILS** | 0 / 0 / 14 — inert |
| 28 | PatternRobot | simple pattern robot | WORKS_WEAK | 8 / 0 / 2 — lost 0-2 |
### Dropped (`NOT_USEFUL`) — measured, then removed
| Bot | Style | Status at drop | Measured | Reason |
|---|---|---|---|---|
| — | Aurora | micro (team-derived) | 6 / 0 / 13 | fires 6 shots, crawls |
| — | FloodMini | mini flood-fill movement | 25 / 0 / 10 | near-stationary turret |
| — | LightningBug | pattern matcher | 36 / 0 / 10 | near-stationary turret |
| — | Aristocles | micro surfer | 39 / 0 / 10 | near-stationary turret |
| — | Nene | melee (Azuma framework) | 0 / 0 / 14 | **FAILS** — inert, 0 scans 0 shots |
| — | Seraphim | melee (Azuma framework) | 0 / 0 / 14 | **FAILS** — inert, 0 scans 0 shots |
Jars deleted from `tr_bots/_salvage/legacy_bots/`, wrapper dirs deleted from
`tr_bots/_salvage/tr_wrappers/`, entries removed from `robots.json`.
`WORKS` = the battle completed, the bot scanned, moved and fired, and landed hits.
`WORKS_WEAK` = the battle completed and the bot scanned/fired, but landed **0**
@@ -177,8 +198,8 @@ each is now a one-time cost of ~0.5–1 h (already paid):
## Reproducing the validation
```bash
export ROBOCODE_JAR=/tmp/robocode/install/libs/robocode.jar
export TR_BOT_API_JAR=$HOME/Downloads/sample-bots-java-1.0.2/lib/robocode-tankroyale-bot-api-1.0.2.jar
export ROBOCODE_JAR=$PWD/tools/robocode_shim/vendor/robocode.jar
export TR_BOT_API_JAR=$PWD/tools/robocode_shim/vendor/robocode-tankroyale-bot-api-1.0.2.jar
tools/robocode_shim/build.sh
tools/robocode_shim/compile_drussgt.sh # DrussGT acceptance: 20/22 files, 43 classes
tools/robocode_shim/run_smoke.sh # DrussGT default path unchanged: OK