ai-code-battle/engine
jedarden cddbe6a279 fix(engine): reduce spawn radius to force bot combat contact
Problem: combat_death events were 0 because bots spawned too far
apart (70% radius from center, ~19 tiles on 54x54 grid). With 3+
players, angular separation meant bots were ~33 tiles apart, far
exceeding the 3-tile attack radius. The zone killed bots before they
could close the distance.

Solution: Reduce spawn radius to 25% (from 70%), placing cores at ~7
tiles from center. On 54x54 grid, 3 players are now ~12 tiles apart
at spawn, allowing them to close into attack range quickly. Also
adjusted zone parameters (start turn 15, min radius 5) to complement
the tighter spawns.

Results:
- 3-player matches: 70% have combat_death events (7/10 seeds tested)
- 4-player matches: 100% have combat_death events, averaging 3.2 per match
- Combat deaths now occur consistently in multi-player matches

Closes: bf-4tfh

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 14:48:20 -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 fix(engine): reduce spawn radius to force bot combat contact 2026-05-24 14:48:20 -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 fix(engine): reduce spawn radius to force bot combat contact 2026-05-24 14:48:20 -04:00
winprob.go feat(engine): integrate Monte Carlo win probability computation into match runner 2026-04-21 08:46:39 -04:00