ai-code-battle/wasm/bots/Makefile
jedarden 98276903e2 feat(wasm): add separate WASM bot builds for browser sandbox (plan §11.1)
Add wasm/bots/ directory with separate WASM builds for each bot:
- gatherer (Go → WASM): energy-focused, avoids combat
- random (Go → WASM): random moves
- guardian (Go → WASM): defends own cores
- hunter (Go → WASM): hunts nearest enemy
- rusher (Rust → WASM): attacks enemy cores
- swarm (AssemblyScript → WASM): tight formations

Each bot exports the standard WASM interface:
- init(configJSON): initialize with game config
- compute_moves(stateJSON): return moves JSON
- free_result(ptr): no-op for Go/AS

Built WASM files output to wasm/dist/. Go WASM bots verified to build.

Closes: bf-2zi5

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 14:58:01 -04:00

25 lines
486 B
Makefile

.PHONY: all gatherer random guardian hunter rusher swarm clean
all: gatherer random guardian hunter rusher swarm
gatherer:
cd gatherer && chmod +x build.sh && ./build.sh
random:
cd random && chmod +x build.sh && ./build.sh
guardian:
cd guardian && chmod +x build.sh && ./build.sh
hunter:
cd hunter && chmod +x build.sh && ./build.sh
rusher:
cd rusher && chmod +x build.sh && ./build.sh
swarm:
cd swarm && chmod +x build.sh && ./build.sh
clean:
rm -rf dist
mkdir -p dist