Remove the geometric gate bots and its README section

The three geometric adversaries (Target, Walls, SpinBot) were force-added in
9f37db7 and are not needed: they were a one-off non-regression gate for the
old opponent-bias gun. Delete them and their README section. Keep the
score_battles.py damage/round + aim-error additions and the DrussGT bot.
This commit is contained in:
2026-10-06 08:46:38 +02:00
parent 9f37db7523
commit 9dab21f231
10 changed files with 0 additions and 356 deletions
-85
View File
@@ -470,88 +470,3 @@ target, not a bug. One thing to watch: `elmCorrection` rebuilds `bulletSpeed` as
`power*10` for the feature (the corpus convention), while the geometric intercept
uses the physical `20 − 3*power`; the corpus does the same, so the feature is
consistent, but the two lead calculations are not the same number.
## Geometric gate
Non-regression gate the user set before the ELM may be judged against DrussGT:
**the ELM must match or beat the plain geometric gun against the three classic
geometric-movement bots** (Target = near-stationary, Walls = wall-hugger,
SpinBot = constant circular motion). Geometric guns are near-perfect against
geometric movement by construction, so this is a floor, not a target. Nothing
was tuned to pass it; no weights changed.
### Adversaries (added under `tr_bots/`)
The canonical Tank Royale Java samples, compiled in place against the vendored
bot API jar (`tank-royale/sample-bots/java/build/archive/lib/…-1.0.2.jar`) —
`tank-royale` itself is untouched. Each dir has `<Name>.java/.class/.json/.sh`:
| bot | source | path |
|---|---|---|
| Target | `sample-bots/java/build/archive/Target` | `tr_bots/Target/` |
| Walls | `sample-bots/java/build/archive/Walls` | `tr_bots/Walls/` |
| SpinBot | `sample-bots/java/build/archive/SpinBot` | `tr_bots/SpinBot/` |
All three boot and play 20 rounds; all six recordings verify CONTIGUOUS
(`python3 tools/raw_recorder/query.py <file>.battle.gz --verify`).
### Gate table — 20 rounds each, RawRecord observer ground truth
Builds: `nim c -d:release … -o DevElm` (default) and `-d:baselineGun`
(geometric). Damage is `BulletHitBotEvent.damage` summed over the recording;
`dmg/rd` divides by 20. Noise column is the per-round standard error of the mean.
| opponent | gun | shots | hits | hit% | damage | dmg/rd | won/rd |
|---|---|---|---|---|---|---|---|
| Target | geometric | 324 | 211 | 65.1% | 2110 | 105.5 ± 1.1 | 20/20 |
| Target | ELM | 562 | 209 | 37.2% | 2090 | 104.5 ± 1.1 | 20/20 |
| Walls | geometric | 605 | 152 | 25.1% | 1520 | 76.0 ± 1.8 | 20/20 |
| Walls | ELM | 772 | 27 | 3.5% | 270 | **13.5 ± 3.6** | 1/20 |
| SpinBot | geometric | 644 | 86 | 13.4% | 860 | 43.0 ± 7.6 | 0/20 |
| SpinBot | ELM | 585 | 22 | 3.8% | 220 | **11.0 ± 1.9** | 0/20 |
### Aim error at fire (degrees, vs the true geometric intercept)
Reference is the physical intercept (bullet speed `20 − 3·power`, constant-velocity
target taken from the observer's own positions); wrapping in (−180°,180°].
| opponent | gun | n | mean | median | sd | ≤1° | ≤5° | ≤10° |
|---|---|---|---|---|---|---|---|---|
| Target | geometric | 324 | +0.08 | +0.02 | 2.74 | 86% | 92% | 98% |
| Target | ELM | 562 | +0.42 | +2.06 | 8.86 | 11% | 59% | 91% |
| Walls | geometric | 605 | −1.48 | −4.56 | 7.30 | 15% | 33% | 87% |
| Walls | ELM | 772 | +13.52 | +11.49 | 11.52 | 3% | 19% | 42% |
| SpinBot | geometric | 644 | −0.19 | +0.38 | 3.91 | 29% | 85% | 98% |
| SpinBot | ELM | 585 | +1.95 | +4.02 | 16.10 | 3% | 17% | 29% |
The ELM's fitted bias (≈ +1.6° to +2° median, plus a much wider tail) is exactly
what the aim-error block shows: it systematically pushes an already-on-target
geometric shot off the intercept, and the correction grows (median +11.5° vs
Walls) when the target moves.
### Verdict
| opponent | geometric dmg/rd | ELM dmg/rd | delta | gate |
|---|---|---|---|---|
| Target | 105.5 ± 1.1 | 104.5 ± 1.1 | −1.0 (≈1 se) | **PASS** (within noise) |
| Walls | 76.0 ± 1.8 | 13.5 ± 3.6 | −62.5 | **FAIL** |
| SpinBot | 43.0 ± 7.6 | 11.0 ± 1.9 | −32.0 | **FAIL** |
The ELM passes only Target, and only because 104.5 vs 105.5 is inside the noise:
it lands the same number of hits (209 vs 211) by firing far more bullets (562 vs
324). Against Walls and SpinBot it fails decisively — damage/round is ~5.6× and
~3.9× worse, and the hit rate collapses (25.1%→3.5%, 13.4%→3.8%). This is a
non-regression failure, and it is the expected direction given the fitted bias.
### bulletSpeed convention — corpus vs live (job-42 follow-up)
**The corpus and the live feature builder agree: both use `power * 10`.**
`extract_realistic.py` writes `v = bu["power"] * 10.0`; `train_elm_gun.nim`
reconstructs `GunBelief.bulletSpeed` from that stored value; `elm_features.nim`
divides it by 20 for `bulletSpd` and derives `tof` from it; and
`elm_gun.elmCorrection` sets `bb.bulletSpeed = power * 10.0` before calling the
same `buildFeatures`. The geometric intercept separately uses the physical
`20 − 3·power`. So there is **no train/inference feature mismatch** — `power*10`
is a corpus artifact that both sides share, and it is not the physical bullet
speed. No change made: it is self-consistent, and changing it would be a
different model, not a bug fix.