ai-code-battle/bots/siege/Dockerfile
jedarden 2696e70257 Implement SiegeBot: spawn-lockout strategy
- Add SiegeBot to engine/bot_strategies.go with spawn denial logic
- Implement standalone siege bot in bots/siege/ with main.go, strategy.go, Dockerfile
- Register siege bot in acb-local for arena testing
- Add test-siege-arena.sh script for validation

Strategy: Surround enemy cores to block spawning phase. Bot assigns
units to lockout rings (8 neighbors) around cores, greedily by distance.
Unassigned units collect energy or rush fully-sieged cores.

Tested: 3/10 wins vs rusher+gatherer, 1/10 wins vs rusher+gatherer+guardian
2026-06-17 01:02:01 -04:00

20 lines
254 B
Docker

FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod .
COPY main.go .
COPY strategy.go .
RUN go build -o siege .
FROM alpine:3.19
WORKDIR /app
COPY --from=builder /app/siege .
ENV BOT_PORT=8080
ENV BOT_SECRET=""
EXPOSE 8080
CMD ["./siege"]