feat(tools): capture real DrussGT movement from classic Robocode as fixtures

There are no genuinely competitive adversaries for Tank Royale, and the
in-repo ones were broken until recently. Classic Robocode 1.9.5.5 is
obtainable (SourceForge, 20.4 MB) and its programmatic control API
(robocode.control.RobocodeEngine + BattleAdaptor.onTurnEnded) can run real
battles headless and expose per-turn robot state. So a legacy leader bot's
MOVEMENT can be captured and used as a gun-testing fixture with no port.

Captured unmodified DrussGT 3.1.4159 vs spinbot/ramfire/crazy/corners and a
mirror match: 28,797 ticks, plus two trivial-bot contrasts. Conversion to
the Tank Royale convention is validated to 0.000-0.001 deg by recomputing
the direction implied by (heading, speed) and comparing it against the
recorded per-tick displacement -- i.e. the data is proven to be genuine
recorded motion rather than a mangled export. (A first attempt treated the
snapshot API's headings as degrees; they are radians, ~95 deg off.)

The statistics confirm it is really a wave surfer: perpendicular to the
opponent 65-96% of ticks, radial ~0.001, 41-72% of ticks at full speed,
reversing on 42-46% of ticks, holding range at a 283-526 px median. The
straight-line contrast is radial-dominant (0.75) with ZERO reversals.

Discovery: DrussGT detects predictable guns and switches to a bullet-shield
stand-still mode, so captures against sample.Walls/TrackFire had to be
rejected as non-movement.

CAVEATS, recorded in DRUSSGT_FIXTURES.md: these are open-loop (replayed
DrussGT never dodges OUR bullets) and perfect-information (the observer
gives true positions every tick, unlike our stale live WorldState). Both
make our guns look better than in live play, so use them for RELATIVE gun
ranking, not absolute hit rates.

Jars stay out of git; capture tooling is reproducible via capture.sh.
This commit is contained in:
2026-09-20 23:44:42 +02:00
parent 974528d5cf
commit 4f18c8ce07
21 changed files with 32456 additions and 0 deletions
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":1451}]}
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":1451}]}
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":480},{"round":1,"startTick":480,"count":287},{"round":2,"startTick":767,"count":214},{"round":3,"startTick":981,"count":185},{"round":4,"startTick":1166,"count":280},{"round":5,"startTick":1446,"count":225},{"round":6,"startTick":1671,"count":344},{"round":7,"startTick":2015,"count":292},{"round":8,"startTick":2307,"count":248},{"round":9,"startTick":2555,"count":206},{"round":10,"startTick":2761,"count":210},{"round":11,"startTick":2971,"count":216},{"round":12,"startTick":3187,"count":275},{"round":13,"startTick":3462,"count":271},{"round":14,"startTick":3733,"count":164},{"round":15,"startTick":3897,"count":228},{"round":16,"startTick":4125,"count":188},{"round":17,"startTick":4313,"count":226},{"round":18,"startTick":4539,"count":208},{"round":19,"startTick":4747,"count":228}]}
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":1825},{"round":1,"startTick":1825,"count":473},{"round":2,"startTick":2298,"count":417},{"round":3,"startTick":2715,"count":617},{"round":4,"startTick":3332,"count":483},{"round":5,"startTick":3815,"count":394},{"round":6,"startTick":4209,"count":300},{"round":7,"startTick":4509,"count":372},{"round":8,"startTick":4881,"count":334},{"round":9,"startTick":5215,"count":509},{"round":10,"startTick":5724,"count":341},{"round":11,"startTick":6065,"count":389},{"round":12,"startTick":6454,"count":475},{"round":13,"startTick":6929,"count":268},{"round":14,"startTick":7197,"count":333},{"round":15,"startTick":7530,"count":250},{"round":16,"startTick":7780,"count":187},{"round":17,"startTick":7967,"count":257},{"round":18,"startTick":8224,"count":414},{"round":19,"startTick":8638,"count":387}]}
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":3506},{"round":1,"startTick":3506,"count":3049}]}
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":189},{"round":1,"startTick":189,"count":182},{"round":2,"startTick":371,"count":161},{"round":3,"startTick":532,"count":159},{"round":4,"startTick":691,"count":177},{"round":5,"startTick":868,"count":149},{"round":6,"startTick":1017,"count":161},{"round":7,"startTick":1178,"count":172},{"round":8,"startTick":1350,"count":175},{"round":9,"startTick":1525,"count":160},{"round":10,"startTick":1685,"count":158},{"round":11,"startTick":1843,"count":164},{"round":12,"startTick":2007,"count":140},{"round":13,"startTick":2147,"count":166},{"round":14,"startTick":2313,"count":161},{"round":15,"startTick":2474,"count":168},{"round":16,"startTick":2642,"count":165},{"round":17,"startTick":2807,"count":151},{"round":18,"startTick":2958,"count":142},{"round":19,"startTick":3100,"count":140}]}
@@ -0,0 +1 @@
{"rounds":[{"round":0,"startTick":0,"count":623},{"round":1,"startTick":623,"count":352},{"round":2,"startTick":975,"count":192},{"round":3,"startTick":1167,"count":276},{"round":4,"startTick":1443,"count":293},{"round":5,"startTick":1736,"count":154},{"round":6,"startTick":1890,"count":289},{"round":7,"startTick":2179,"count":164},{"round":8,"startTick":2343,"count":260},{"round":9,"startTick":2603,"count":166},{"round":10,"startTick":2769,"count":263},{"round":11,"startTick":3032,"count":239},{"round":12,"startTick":3271,"count":287},{"round":13,"startTick":3558,"count":192},{"round":14,"startTick":3750,"count":162},{"round":15,"startTick":3912,"count":197},{"round":16,"startTick":4109,"count":176},{"round":17,"startTick":4285,"count":231},{"round":18,"startTick":4516,"count":292},{"round":19,"startTick":4808,"count":194}]}