ai-code-battle/cmd/acb-mapgen
jedarden 41d868b5c1 feat(engine): add pre-generated map loading from map library
Per plan §3.8, maps should be generated offline and stored in the map
library, not generated on-the-fly during matches. This commit adds
support for loading pre-generated maps from the database.

Changes:
- Add PreGeneratedMap type and WithMap option to MatchRunner
- Add loadPreGeneratedMap() to parse map JSON (walls, cores)
- Update worker to pass loaded map data to MatchRunner via WithMap
- Fallback to on-the-fly generation if map data is invalid
- Update acb-mapgen spawn radius to 25% for 2-player (aligns with match.go)
- Update test to verify cores are outside final zone radius

This enables the map library infrastructure (maps/, acb-mapgen, index
builder) to be used in production matches instead of being ignored.

Closes: bf-5m29

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 14:14:27 -04:00
..
connectivity.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
main.go feat(engine): add pre-generated map loading from map library 2026-05-25 14:14:27 -04:00
mapgen_test.go feat(engine): add pre-generated map loading from map library 2026-05-25 14:14:27 -04:00