ai-code-battle/cmd
jedarden 6a6a3788a6 fix(worker): use ConfigForPlayers to get correct AttackRadius2=12
The worker was hardcoding AttackRadius2=5 in executeMatch, but
engine.ConfigForPlayers sets AttackRadius2=12 for both 2-player and
3+ matches. This mismatch meant matches ran with the old attack radius
instead of the improved value that supports better combat density.

Now uses ConfigForPlayers which provides:
- AttackRadius2: 12 (3.5 tiles) for all player counts
- Proper zone parameters scaled by player count
- Correct max turns scaling

Grid dimensions are overridden from the pre-generated map, and
SeasonID/RulesVersion are preserved from the match.

Closes: bf-576s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 16:03:02 -04:00
..
acb-api style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-enrichment style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-evolver style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-index-builder style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -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 style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -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 fix(worker): use ConfigForPlayers to get correct AttackRadius2=12 2026-05-24 16:03:02 -04:00