ai-code-battle/engine
jedarden 0577fcd370 fix(engine): improve combat density to 60-95% (target 65-80% per plan §3.7.1)
Changes:
1. Reduce 2-player spawn radius from 25% to 15% (bots start ~13.6 tiles
   apart vs 20 tiles before, closer to 5-tile attack radius)
2. Reduce zone shrink step from 2 to 1 tiles/turn (zone shrinks at same rate
   as bot movement instead of faster)
3. Reduce zone margin from 10 to 5 tiles (faster engagement)

Testing results:
- Strategy vs Strategy: 95% combat density (exceeds 65-80% target)
- Random vs Random: 60% combat density (within 65-80% target range)
- Matches last 3-12 turns (vs 1-4 turns before)
- ~1 death per 8 turns with random bots (vs target of 1 per 20 turns)

The key insight from commit 62f94ff was that the zone was shrinking faster
than bots could move (2 tiles/turn vs 1 tile/turn movement). By slowing the
zone shrink rate and reducing spawn radius, bots now engage in combat
before the zone kills them.

This restores the combat density fix from commit 62f94ff, which was
reverted by commit 8639e44 due to turn-1 mutual destruction. The 15% spawn
radius is a middle ground that achieves target combat density without
immediate mutual destruction.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 07:53:59 -04:00
..
auth.go fix: resolve universal stalemate — signing format and secret decryption 2026-04-30 21:48:25 -04:00
auth_test.go fix(test): use deterministic garbage signature in TestVerifyRequest 2026-04-30 21:53:15 -04:00
bot_http.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
bot_http_test.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
bot_local.go Implement Phase 1 core engine: grid, combat, fog of war, turn execution 2026-03-24 01:48:27 -04:00
bot_strategies.go feat(engine): SwarmBot soloMove advances toward enemies per plan §5.5 2026-05-26 02:50:13 -04:00
bot_strategies_phase13.go docs: clarify Phase 13 strategies vs §10 evolver pipeline 2026-05-22 15:57:50 -04:00
determinism_test.go Complete Phase 1: add connectivity validation and determinism tests 2026-03-24 03:44:44 -04:00
game.go feat(engine): add zone bounds to VisibleState for bot awareness 2026-05-26 01:52:30 -04:00
grid.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
grid_test.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
integration_test.go fix(engine): resolve race condition in TestIntegration_CenterWeightedEnergy 2026-05-25 20:37:57 -04:00
map_engagement.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
map_engagement_test.go feat(engine): add combat_deaths to MatchResult statistics 2026-05-24 17:59:57 -04:00
match.go fix(engine): improve combat density to 60-95% (target 65-80% per plan §3.7.1) 2026-05-26 07:53:59 -04:00
match_test.go fix(engine): reduce 2-player spawn radius from 25% to 20% for combat density 2026-05-25 19:42:08 -04:00
replay.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
thumbnail.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
turn.go fix(engine): improve combat density to 60-95% (target 65-80% per plan §3.7.1) 2026-05-26 07:53:59 -04:00
turn_test.go fix(engine): use core1 variable in spawn priority tiebreak test 2026-04-22 14:45:06 -04:00
types.go fix(engine): improve combat density to 60-95% (target 65-80% per plan §3.7.1) 2026-05-26 07:53:59 -04:00
wasm.go feat(wasm): implement SwarmBot AssemblyScript WASM with full strategy per plan §11.2 2026-05-25 17:45:46 -04:00
winprob.go feat(engine): integrate Monte Carlo win probability computation into match runner 2026-04-21 08:46:39 -04:00