diff --git a/legacy_bots/DrussGT/DrussGT.jar b/legacy_bots/DrussGT/DrussGT.jar new file mode 100644 index 0000000..fe094fd Binary files /dev/null and b/legacy_bots/DrussGT/DrussGT.jar differ diff --git a/legacy_bots/DrussGT/DrussGT.json b/legacy_bots/DrussGT/DrussGT.json new file mode 100644 index 0000000..5b2f7cc --- /dev/null +++ b/legacy_bots/DrussGT/DrussGT.json @@ -0,0 +1,11 @@ +{ + "name": "DrussGT", + "version": "3.1.4159", + "authors": ["Jacob"], + "description": "Real classic DrussGT running on Tank Royale via the robocode_shim bridge", + "homepage": "", + "countryCodes": ["se"], + "gameTypes": ["classic", "1v1"], + "platform": "JVM", + "programmingLang": "Java 8" +} diff --git a/legacy_bots/DrussGT/DrussGT.sh b/legacy_bots/DrussGT/DrussGT.sh new file mode 100755 index 0000000..8966c0d --- /dev/null +++ b/legacy_bots/DrussGT/DrussGT.sh @@ -0,0 +1,34 @@ +#!/bin/sh +# Legacy classic-Robocode robot hosted on Tank Royale by our own shim. +# Bootable by the official tankroyale booter (SERVER_URL/SERVER_SECRET come from +# the environment - this script never hardcodes a server address). +cd "$(dirname "$0")" +HERE="$(pwd)" +REPO="$(cd "$HERE/../.." && pwd)" + +export SHIM_BOT_CLASS="jk.mega.DrussGT" +export SHIM_BOT_JAR="$HERE/DrussGT.jar" + +: "${SHIM_DATA:=${DRUSSGT_DATA:-$(mktemp -d "${TMPDIR:-/tmp}/tr_shim_data.XXXXXX")}}" +export SHIM_DATA + +: "${BOT_NAME:=DrussGT}" +export BOT_NAME +: "${BOT_VERSION:=3.1.4159}" +export BOT_VERSION +: "${BOT_AUTHORS:=Jacob}" +export BOT_AUTHORS +: "${BOT_DESCRIPTION:=Real classic DrussGT running on Tank Royale via the robocode_shim bridge}" +export BOT_DESCRIPTION +: "${BOT_HOMEPAGE:=}" +export BOT_HOMEPAGE +: "${BOT_COUNTRY_CODES:=se}" +export BOT_COUNTRY_CODES +: "${BOT_GAME_TYPES:=classic,1v1}" +export BOT_GAME_TYPES +: "${BOT_PLATFORM:=JVM}" +export BOT_PLATFORM +: "${BOT_PROG_LANG:=Java 8}" +export BOT_PROG_LANG + +exec java -cp "$REPO/tools/robocode_shim/out:$REPO/tools/robocode_shim/vendor/robocode.jar:$REPO/tools/robocode_shim/vendor/robocode-tankroyale-bot-api-1.0.2.jar" robocode_shim.LegacyBotBridge diff --git a/legacy_bots/MANIFEST.sha256 b/legacy_bots/MANIFEST.sha256 index cfa6183..adf9947 100644 --- a/legacy_bots/MANIFEST.sha256 +++ b/legacy_bots/MANIFEST.sha256 @@ -11,6 +11,7 @@ 2e4e94b5061bd287d758b0dcc03734a6a5cb432b077d2b296f9641682bad4d96 Dookious/Dookious.jar 39d3b37cc9e7a9a2f244efcc526d756846e66a619730e75beb24cdce70194b5f Coriantumr/Coriantumr.jar 57f7348becec43c111d2e126240b30b5fdb8bc597ff18104df1cf07d67aaee5c DiamondStealer/DiamondStealer.jar +5dfc05957f911349db77a9994629687bbe68686ff1b760c5857144d040e58e59 DrussGT/DrussGT.jar 66705bfbd6daa2b1f7470e9e17846a238b752fc3829227ddc7e67612c33117ff Ascendant/Ascendant.jar 79884ef9a9613ab04d92fa6a9cce64d2cdf38c7ec347060e16e746bb8474df35 RetroGirl/RetroGirl.jar 8154cbe8645640447447d1f55bf5da0e9484b6b7d6507c87824f9ebe71952848 WaveSurferPG/WaveSurferPG.jar diff --git a/legacy_bots/README.md b/legacy_bots/README.md index bdd8e45..009f3aa 100644 --- a/legacy_bots/README.md +++ b/legacy_bots/README.md @@ -65,17 +65,20 @@ Nene/Seraphim would need a second driver path in the shim (an Azuma-framework adapter) before they are worth resurrecting. The other three fire but never move, so they are dead weight as sparring partners. -Dropping the six inert bots from the tree leaves **28** directories; the +Dropping the six inert bots from the tree leaves **29** directories (28 legacy +champions plus the reference bot `DrussGT`); the 2-round survey that fed the drop list counted 26 bots that both fired *and* moved, because `PatternRobot` and `KurtWaveSurfer` fire but are weak movers — they are kept here as `WORKS_WEAK` rather than dropped. ### DrussGT -**Not duplicated here.** DrussGT is the reference bot, it has decompiled sources -in the repo, and its jar is already vendored at -`tools/robocode_shim/vendor/drussgt/DrussGT.jar` with its bot directory in -`tr_bots/DrussGT`. Copying it here would create a second copy to keep in sync. +DrussGT — the reference bot — is now a first-class member of this tree at +`legacy_bots/DrussGT/{DrussGT.jar,DrussGT.sh,DrussGT.json}`, using the same +layout as every other legacy bot. Its jar is committed here and recorded in +`MANIFEST.sha256`; it is also vendored (with decompiled sources) at +`tools/robocode_shim/vendor/drussgt/` for port analysis. `tr_bots/DrussGT` is +kept as a compatibility symlink to `legacy_bots/DrussGT` for in-flight jobs. ## Running a battle diff --git a/tools/robocode_shim/LEGACY_BOTS.md b/tools/robocode_shim/LEGACY_BOTS.md index 56bec4e..513c310 100644 --- a/tools/robocode_shim/LEGACY_BOTS.md +++ b/tools/robocode_shim/LEGACY_BOTS.md @@ -20,8 +20,9 @@ jar) are vendored and tracked under `tools/robocode_shim/vendor/`. * **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`. + but are flagged weak). `DrussGT` itself is the reference bot and now lives in + `legacy_bots/DrussGT` alongside them (its jar is also vendored, with decompiled + sources, at `tools/robocode_shim/vendor/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 diff --git a/tools/robocode_shim/robots.json b/tools/robocode_shim/robots.json index fbefcde..4c48654 100644 --- a/tools/robocode_shim/robots.json +++ b/tools/robocode_shim/robots.json @@ -9,15 +9,16 @@ { "name": "DrussGT", "main_class": "jk.mega.DrussGT", - "jar": "tools/robocode_shim/vendor/drussgt/DrussGT.jar", + "jar": "legacy_bots/DrussGT/DrussGT.jar", "version": "3.1.4159", "style": "dynamic-clustering gun + wave-surfing movement (Voidious-style mega)", "status": "REFERENCE", "obtained": "pre-existing (spike asset)", "source_url": "", "license": "not stated in jar", - "botdir": "tr_bots/DrussGT", - "evidence": "run_bridge_battle.sh default path, 2 rounds vs SpinBot: fired 141, hits 17; won 2/2" + "botdir": "legacy_bots/DrussGT", + "evidence": "run_bridge_battle.sh default path, 2 rounds vs SpinBot: fired 141, hits 17; won 2/2", + "sha256": "5dfc05957f911349db77a9994629687bbe68686ff1b760c5857144d040e58e59" }, { "name": "Diamond", @@ -417,6 +418,6 @@ "WORKS": "fires and moves in a real battle", "WORKS_WEAK": "launches and fires but barely moves or lands no hits", "NOT_USEFUL": "launches but is inert or does not move - measured, then DELETED from legacy_bots/, from tr_bots/_salvage/ and from this file (Nene, Seraphim, Aurora, FloodMini, LightningBug, Aristocles)", - "REFERENCE": "DrussGT, the reference bot; lives in tr_bots/DrussGT" + "REFERENCE": "DrussGT, the reference bot; lives in legacy_bots/DrussGT" } } diff --git a/tr_bots/DrussGT b/tr_bots/DrussGT new file mode 120000 index 0000000..75553d1 --- /dev/null +++ b/tr_bots/DrussGT @@ -0,0 +1 @@ +../legacy_bots/DrussGT \ No newline at end of file diff --git a/tr_bots/SAMPLE_BOTS.md b/tr_bots/SAMPLE_BOTS.md index b605717..6100ecd 100644 --- a/tr_bots/SAMPLE_BOTS.md +++ b/tr_bots/SAMPLE_BOTS.md @@ -12,7 +12,7 @@ the Downloads tree is never modified. The official booter (`tools/booter/robocode-tankroyale-booter-0.35.5-all.jar`) runs `