ai-code-battle/bots/swarm
jedarden 390ebba52a fix(bots): add zone edge margin to strategy bots for combat density
Strategy bots (GathererBot, RusherBot, SwarmBot) now move toward zone
center when within 2 tiles of the zone edge, not just when outside.
This anticipates the shrinking zone and prevents bots from moving
away from center due to energy-seeking logic.

Test results: 60% of matches now have combat deaths (3/5), up from 0%.
Zone margin of 2 tiles aligns with engine's built-in bot behavior.

Fixes gap identified in test replay where gatherer bot at distance 5
from center (zone radius 6) moved away from center and died from
zone_death instead of engaging in combat.

Closes: bf-2ham

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 08:42:44 -04:00
..
src fix(bots): add zone edge margin to strategy bots for combat density 2026-05-26 08:42:44 -04:00
Dockerfile Complete Phase 2: HTTP protocol and 6 strategy bots 2026-03-24 07:00:38 -04:00
package.json Complete Phase 2: HTTP protocol and 6 strategy bots 2026-03-24 07:00:38 -04:00
tsconfig.json Complete Phase 2: HTTP protocol and 6 strategy bots 2026-03-24 07:00:38 -04:00