ai-code-battle/bots
jedarden ad70675c38 feat(bots): make SwarmBot and RusherBot actively seek combat
Previously both bots avoided enemy positions during pathfinding,
preventing active engagement. Now both bots get bonuses for moving
toward enemies, encouraging them to enter attack range intentionally.

SwarmBot (bots/swarm/src/strategy.ts):
- Added bonus for getting closer to enemies (score += (currentDist - newDist) * 5)
- Existing bonus for being in attack range (score += 50) now more achievable

RusherBot (bots/rusher/src/strategy.rs):
- Added fallback to move toward nearest enemy when no path to target exists
- Prioritizes engagement over random movement when blocked

Impact: Combat now happens consistently across all matches. Test matches show
4 combat deaths in 2-12 turn matches (vs 0-2 deaths in 3-4 turns before).

Closes: bf-1qq8

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 03:20:11 -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 style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -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 feat(bots): make SwarmBot and RusherBot actively seek combat 2026-05-26 03:20:11 -04:00
scout fix(bots): remove timestamp from verify_signature signing string 2026-05-02 20:43:44 -04:00
swarm feat(bots): make SwarmBot and RusherBot actively seek combat 2026-05-26 03:20:11 -04:00