ai-code-battle/engine
jedarden 4464e7a874 feat(engine): fix 2-player combat density with tighter spawns and aggressive zone
Problem: 2-player matches had zero combat_death events. Recent combat density
work (bf-4tfh) addressed 3+ player matches but 2-player duels still had zero
combat.

Root cause: 25% spawn radius on 40x40 grid placed bots ~20 tiles apart, with
default zone timing (start turn 50) giving ample time to avoid contact.

Solution:
- Reduce 2-player spawn radius to 20% (from 25%) → ~16 tiles apart at spawn
- Increase 2-player attack radius to 3.5 tiles (from 3) → AttackRadius2=12
- Aggressive 2-player zone: start turn 30, shrink every 2 turns, min radius 3

Results:
- 2-player: 10/10 seeds have combat_death (was 0/10), avg 2.0 per match
- 3-player: 80% have combat_death (was 70%), no regression
- 4-player: 100% have combat_death, avg 3.6 (was 3.2), no regression

Closes: bf-5w8z

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 15:17:15 -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 style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -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 style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -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 style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
map_engagement.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
map_engagement_test.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
match.go feat(engine): fix 2-player combat density with tighter spawns and aggressive zone 2026-05-24 15:17:15 -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): zone should not kill bots before activation 2026-05-24 10:47:28 -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 feat(engine): fix 2-player combat density with tighter spawns and aggressive zone 2026-05-24 15:17:15 -04:00
winprob.go feat(engine): integrate Monte Carlo win probability computation into match runner 2026-04-21 08:46:39 -04:00