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> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Dockerfile | ||