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>
10 lines
188 B
JSON
10 lines
188 B
JSON
{
|
|
"extends": "../node_modules/assemblyscript/std/assembly.json",
|
|
"include": [
|
|
"./**/*.ts"
|
|
],
|
|
"compilerOptions": {
|
|
"baseDir": ".",
|
|
"outFile": "./build/swarm.wasm"
|
|
}
|
|
}
|