ai-code-battle/bots
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
..
assassin fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
defender fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00
farmer style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
gatherer fix(bots): add zone edge margin to strategy bots for combat density 2026-05-26 08:42:44 -04:00
guardian fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
hunter fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
kamikaze feat(bot): implement Kamikaze bot (JavaScript) — aggressive self-sacrifice archetype 2026-04-22 17:11:28 -04:00
nomad fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00
opportunist fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
pacifist feat(bot): add Pacifist bot (JavaScript) — non-aggressive attrition archetype 2026-04-22 16:32:50 -04:00
phalanx fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
raider fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
random fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
rusher fix(bots): add zone edge margin to strategy bots for combat density 2026-05-26 08:42:44 -04:00
scout fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
swarm fix(bots): add zone edge margin to strategy bots for combat density 2026-05-26 08:42:44 -04:00