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>
18 lines
430 B
JSON
18 lines
430 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"lib": ["ES2022"],
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"declaration": true
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|