ai-code-battle/cmd
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
..
acb-api feat(api): add GET /api/status/{bot_id} endpoint per plan §8.2 2026-05-25 16:53:03 -04:00
acb-enrichment feat(enrichment): align config with other services for K8s deployment 2026-05-25 01:44:59 -04:00
acb-evolver fix(evolver): correct ctx variable declaration (use = instead of := for parameter shadow) 2026-05-26 13:43:24 -04:00
acb-index-builder style(index-builder): normalize EvolutionMeta struct field alignment 2026-05-26 14:41:19 -04:00
acb-local fix(cli): handle draw result without panic 2026-05-24 11:13:00 -04:00
acb-map-evolver style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-mapgen fix(engine): adjust 2-player spawn radius to 15% for 65-80% combat density target 2026-05-26 15:48:20 -04:00
acb-maps-loader style: format Go files with gofmt 2026-05-25 15:33:38 -04:00
acb-matchmaker style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-wasm style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-worker feat(engine): add pre-generated map loading from map library 2026-05-25 14:14:27 -04:00