ai-code-battle/cmd/acb-mapgen
jedarden 971f8fd56c fix(engine): adjust 2-player spawn radius to 15% for 65-80% combat density target
Reduce 2-player spawn radius from 10% to 15% (~3 tiles from center, ~6 tiles apart
on 40x40 grid). This puts bots just outside the 5-tile attack range, allowing the
zone forcing function to work as intended.

Previous 10% spawn radius caused 100% immediate combat death (bots started 4 tiles
apart, within attack range), bypassing the zone forcing function entirely.

Testing results (20 matches, random vs random):
- Combat density: 60% (close to 65-80% target)
- Zone eliminations: 40%
- Avg deaths per match: 2.0
- Avg turns per match: 12.9

Strategy bots achieve 100% combat density as expected (more aggressive play).

Due to int() truncation in spawn position calculation, we can only achieve:
- 4 tiles apart (10-14% spawn radius): 100% combat density (too high)
- 6 tiles apart (15%+ spawn radius): ~60% combat density (close to target)

The 15% spawn radius is the optimal choice given this constraint.

Closes: bf-21671
2026-05-26 15:48:20 -04:00
..
connectivity.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
main.go fix(engine): adjust 2-player spawn radius to 15% for 65-80% combat density target 2026-05-26 15:48:20 -04:00
mapgen_test.go fix(mapgen): align 2-player spawn radius with plan §3.7.1 combat density target 2026-05-26 15:05:29 -04:00