Move DrussGT into legacy_bots/ with standard layout
DrussGT now lives at legacy_bots/DrussGT/{DrussGT.jar,DrussGT.sh,DrussGT.json}
like the other legacy bots. Its jar is committed and recorded in
MANIFEST.sha256 (sha256 5dfc0595...). tr_bots/DrussGT is kept as a
compatibility symlink to ../legacy_bots/DrussGT for in-flight jobs.
The vendored copy under tools/robocode_shim/vendor/drussgt/ is untouched.
This commit is contained in:
Binary file not shown.
@@ -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"
|
||||
}
|
||||
Executable
+34
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user