ai-code-battle/bots/coordinator
jedarden 8af1c03aca feat(bots): add coordinator bot with dynamic role allocation
Implement CoordinatorBot - a multi-role strategy bot that dynamically
allocates roles (Attacker/Harvester/Defender/Scout) each turn based on
game state.

Features:
- Per-turn role assignment using greedy Hungarian-style algorithm
- Dynamic role rebalancing based on threat level, economic pressure, score
- Zone-aware survival logic
- HTTP server with HMAC authentication
- TypeScript implementation with full type safety

Role allocation algorithm:
- Base split: 50% attackers, 25% harvesters, 15% defenders, 10% scouts
- Adjusts: +10% defenders if threat > 0.3
- Adjusts: +10% harvesters if energy < spawn threshold
- Adjusts: +20% attackers if score leads by 5+
- Assigns bots by proximity to role targets

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 04:24:26 -04:00
..
src feat(bots): add coordinator bot with dynamic role allocation 2026-06-17 04:24:26 -04:00
Dockerfile feat(bots): add coordinator bot with dynamic role allocation 2026-06-17 04:24:26 -04:00
package-lock.json feat(bots): add coordinator bot with dynamic role allocation 2026-06-17 04:24:26 -04:00
package.json feat(bots): add coordinator bot with dynamic role allocation 2026-06-17 04:24:26 -04:00
tsconfig.json feat(bots): add coordinator bot with dynamic role allocation 2026-06-17 04:24:26 -04:00