ai-code-battle/bots/rusher
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
.gitignore fix(bots): remove tracked target/ from rusher bot, add .gitignore 2026-04-24 07:32:01 -04:00
Cargo.lock fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00
Cargo.toml fix(bots): use thin LTO and Cargo.lock in rusher build 2026-04-24 07:39:16 -04:00
Dockerfile fix(rusher): add musl-dev to fix crti.o linker error on Alpine 2026-04-24 08:41:49 -04:00