ai-code-battle/engine
jedarden d24139987a fix(engine): correct 2-player spawn radius to 25% per plan §3.7.1
Previous spawn radius of 13% (5.2 tiles from center) put bots only ~10 tiles
apart on a 40x40 grid - within the 5-tile attack radius. With 2 cores per player,
secondary cores were only 4 tiles apart, causing all bots to die immediately on
turn 1 instead of being forced together by the zone over time.

New spawn radius of 25% (10 tiles from center, 20 tiles apart) puts bots
outside attack range. The zone forcing function now works as designed:
bots start apart, zone shrinks over time, and combat occurs when bots are
forced into contact range.

Verification:
- Before: 100% of matches ended in 1 turn with 4 deaths (all bots died immediately)
- After: Matches last 3-15 turns (avg ~9), 2-4 deaths per match, 100% have combat_deaths
- Target per plan §3.7.1: 65-80% combat density, ~1 death per 20 turns

Closes: bf-1s2q
2026-05-25 16:10:12 -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(engine): align struct field names in GameState 2026-05-24 19:19:45 -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): reduce 2-player zone min radius to 2 for forced combat 2026-05-25 13:27:18 -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): correct 2-player spawn radius to 25% per plan §3.7.1 2026-05-25 16:10:12 -04:00
match_test.go fix(engine): reduce 2-player spawn radius and zone shrink step for combat density 2026-05-25 13:50:09 -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): fix zone forcing function for combat density 2026-05-25 15:13:37 -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): set DefaultConfig ZoneMinRadius to 1 per plan §3.7.1 2026-05-25 16:05:43 -04:00
winprob.go feat(engine): integrate Monte Carlo win probability computation into match runner 2026-04-21 08:46:39 -04:00