ai-code-battle/cmd/acb-worker
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
..
api.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
b2.go fix(worker): disable SDK checksum trailer for R2 uploads 2026-04-30 10:35:00 -04:00
crash_test.go test: integration tests for multi-match crash cooldown (3 strikes / 30 min) per §4.5 + §6.1 2026-04-22 15:14:03 -04:00
crypto.go fix: accept base64-encoded AES keys (OpenBao stores keys as base64, not hex) 2026-04-30 23:04:29 -04:00
db.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
Dockerfile fix(docker): add COPY metrics/ to all service Dockerfiles 2026-04-23 18:00:16 -04:00
glicko2.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
main.go fix(worker): use ConfigForPlayers to get correct AttackRadius2=12 2026-05-24 16:03:02 -04:00
metrics.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
metrics_test.go Add Prometheus metrics endpoint to match worker 2026-03-26 00:50:10 -04:00