ai-code-battle/wasm
jedarden 8d15333f2b feat(wasm): implement RusherBot WASM with low-level interface per plan §11.2
- Rewrote wasm/bots/rusher/src/lib.rs with complete Rusher strategy:
  - BFS pathfinding to nearest enemy cores
  - Wall and enemy avoidance
  - Known enemy core tracking across turns
  - Minimal JSON parser for state/config
  - Custom bump allocator using __heap_base
- Updated Cargo.toml for no_std build with alloc crate
- Updated build.sh to use cargo directly (sandbox expects low-level exports)
- Output: 14KB WASM (much smaller than Go's 5MB due to no runtime)

The sandbox loader expects pointer-based WASM interface (allocate, init,
compute_moves, free_result) not wasm-bindgen's JavaScript bindings.
This implementation uses raw WASM exports compatible with createPointerBasedBridge.

Closes: bf-2d50
2026-05-25 17:41:49 -04:00
..
bots feat(wasm): implement RusherBot WASM with low-level interface per plan §11.2 2026-05-25 17:41:49 -04:00
engine feat(wasm): add Go WASM engine build per plan §11.2, §13.1 2026-05-25 17:31:25 -04:00
Makefile feat(wasm): add Go WASM engine build per plan §11.2, §13.1 2026-05-25 17:31:25 -04:00