ai-code-battle/bots/swarm
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
..
src feat(bots): make SwarmBot and RusherBot actively seek combat 2026-05-26 03:20:11 -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