ai-code-battle/engine
jedarden 5b6f7267f9 feat(engine): bias energy placement toward map center for combat density
Implement center-weighted energy distribution as a forcing function
to pull players into contested midfield, increasing combat density.

Changes:
- engine/match.go: Update placeEnergyNodes to use tiered radius
  distribution (30% central 0.05-0.20, 40% mid 0.20-0.40, 30% outer
  0.40-0.60) instead of uniform 0.3-0.7
- engine/integration_test.go: Add TestIntegration_CenterWeightedEnergy
  to verify ~25% of energy nodes spawn in central zone
- cmd/acb-mapgen: Already had tiered distribution (unchanged, just
  comments updated)
- cmd/acb-mapgen/mapgen_test.go: Add TestGenerateMap_CenterWeightedEnergy

This uses the existing economic incentive (energy collection) as a
forcing function without changing combat resolution or scoring.

Closes: bf-648i

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:30:52 -04:00
..
auth.go fix: resolve universal stalemate — signing format and secret decryption 2026-04-30 21:48:25 -04:00
auth_test.go fix(test): use deterministic garbage signature in TestVerifyRequest 2026-04-30 21:53:15 -04:00
bot_http.go phase-9: implement bot debug telemetry with values and heatmap support 2026-05-08 11:02:43 -04:00
bot_http_test.go fix(engine): enforce strict HMAC response signature verification per §4.4 2026-04-22 13:18:10 -04:00
bot_local.go Implement Phase 1 core engine: grid, combat, fog of war, turn execution 2026-03-24 01:48:27 -04:00
bot_strategies.go feat(evolver): complete Phase 7 LLM-driven evolution implementation 2026-04-08 16:38:48 -04:00
bot_strategies_phase13.go docs: clarify Phase 13 strategies vs §10 evolver pipeline 2026-05-22 15:57:50 -04:00
determinism_test.go Complete Phase 1: add connectivity validation and determinism tests 2026-03-24 03:44:44 -04:00
game.go feat(engine): add shrinking play-zone (storm) for combat density 2026-05-24 10:01:34 -04:00
grid.go Implement Phase 1 core engine: grid, combat, fog of war, turn execution 2026-03-24 01:48:27 -04:00
grid_test.go feat(engine): add TestINV6_ToroidalBounds property-based fuzz test 2026-05-03 23:52:44 -04:00
integration_test.go feat(engine): bias energy placement toward map center for combat density 2026-05-24 10:30:52 -04:00
map_engagement.go feat(engine): add combat-density metric and fix computeCombatTurns 2026-05-24 10:16:54 -04:00
map_engagement_test.go feat(engine): add combat-density metric and fix computeCombatTurns 2026-05-24 10:16:54 -04:00
match.go feat(engine): bias energy placement toward map center for combat density 2026-05-24 10:30:52 -04:00
replay.go feat(engine): add shrinking play-zone (storm) for combat density 2026-05-24 10:01:34 -04:00
thumbnail.go feat(config): add season_id + rules_version to Config per §4.2 2026-04-22 18:09:26 -04:00
turn.go feat(engine): add shrinking play-zone (storm) for combat density 2026-05-24 10:01:34 -04:00
turn_test.go fix(engine): use core1 variable in spawn priority tiebreak test 2026-04-22 14:45:06 -04:00
types.go feat(engine): reduce default map size to 40x40 and add skirmish map class 2026-05-24 10:10:57 -04:00
winprob.go feat(engine): integrate Monte Carlo win probability computation into match runner 2026-04-21 08:46:39 -04:00