ai-code-battle/bots/rusher/src
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
..
game.rs feat(bots): add zone bounds awareness to GathererBot, RusherBot, SwarmBot 2026-05-26 08:03:30 -04:00
main.rs fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
strategy.rs fix(bots): add zone edge margin to strategy bots for combat density 2026-05-26 08:42:44 -04:00