WebAssembly-based checkers game with a minimax-based AI player.
Rust WASM module for game logic with a JS frontend for rendering and processing user input.
Read the docs here. Read the blog post here.
- Setup a Rust + wasm-pack environment and a Node environment
- Build the Rust library into a WASM module
wasm-pack build
- Move to the Js workspace
cd www
- Install the Js dependencies
npm install
- Build the Js frontend with Rust WASM module
npm run build