Phase 2 Implementation: - HMAC authentication for engine-to-bot communication - Request signing with timestamp anti-replay - Response signing for integrity verification - HTTP bot client with timeout and crash detection - Per-turn 3s timeout, 10 consecutive failure crash threshold - Move validation (position ownership, direction validity) - Integration tests for HTTP match execution - 6 strategy bots in 6 languages: - RandomBot (Python): Random valid moves - rating floor - GathererBot (Go): Energy-focused with combat avoidance - RusherBot (Rust): Aggressive core rushing via BFS - GuardianBot (PHP): Defensive core protection - SwarmBot (TypeScript): Formation-based group combat - HunterBot (Java): Target isolation and hunting All bots include: - HMAC signature verification - Dockerfile for containerization - README documentation All engine tests passing (32+ tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
158 B
Docker
13 lines
158 B
Docker
# GuardianBot - PHP defensive bot
|
|
FROM php:8.4-cli-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
ENV BOT_PORT=8083
|
|
ENV BOT_SECRET=""
|
|
|
|
EXPOSE 8083
|
|
|
|
CMD ["php", "index.php"]
|