Files

25 lines
2.1 KiB
Markdown

# G8.5 offline hit-rate bench (M7.5, virtual-gun tournament)
Replayed archived trajectories (`/tmp/chimera_g4_run`) + a synthesized Dodger-v2; hit = bullet passes within 20. units of the realized enemy position on its flight. Aim slew/cadence abstracted. Generated by `tests/bench_g8.nim`.
| opponent | twin % | ELM % | head-on % | vgun % | shots |
|---|---:|---:|---:|---:|---:|
| Corners | 49.3 | 59.6 | 52.2 | 57.2 | 339 |
| Crazy | 50.3 | 31.5 | 15.0 | 50.3 | 1042 |
| Fire | 50.7 | 41.4 | 45.9 | 50.7 | 440 |
| RamFire | 90.5 | 92.7 | 89.9 | 90.5 | 328 |
| SpinBot | 88.3 | 20.1 | 20.1 | 88.3 | 715 |
| TrackFire | 84.2 | 87.3 | 87.3 | 84.2 | 221 |
| VelociBot | 38.7 | 23.3 | 28.4 | 38.7 | 786 |
| Walls | 43.8 | 22.1 | 1.8 | 43.8 | 825 |
| Dodger | 82.7 | 46.4 | 10.9 | 82.7 | 220 |
**G8.5 offline bar: vgun >= max(twin, ELM-base, head-on) on >= 6/9 opponents AND vgun >= ELM-base on all movers (Crazy, SpinBot, VelociBot, Walls, Dodger).** Result: vgun >= best single gun on 6/9; vgun >= ELM-base on 5/5 movers. **Verdict: PASS.**
## Method / caveats
* `VGUN` = `chimera/virtual_guns.nim`: per-tick virtual bullets for {TWIN, ELM, HEAD-ON}, a per-shot hit-rate EMA (tau=100) plus a damage-weighted accumulator with tau=200 exponential forgetting, argmax fired under 0.1 hysteresis. Classic Robocode Virtual Guns pattern (https://robowiki.net/wiki/Virtual_Guns).
* `TWIN` = `chimera/aimer.nim`: iterated flight time `h = dist/(20-3*power)`, horizon-bucketed predictor Hedge (mixture/residual/persistence), trained ONLINE per record (one aimer, score-then-aim each sampled tick), spread-selected power.
* `ELM` = the ELM gun's **base** geometric intercept from the observed velocity (the learned correction is gated and small, and the online ELM state cannot be replayed offline). This is a proxy for the full ELM gun — a documented deviation.
* The synthesized Dodger is Dodger-v2 (`tests/archetypes/Dodger`): wave-based perpendicular strafe, centre-pull, seeded reversals. It fires a wave every 12 ticks; a real battle adds shooter motion. Live results (`m7_5_g8_live.md`) are the reality check.