Build a Chess Game with Rust and WebAssembly
Build a complete chess game that runs entirely in the browser: a Rust engine compiled to WebAssembly, a Lit web component in front of it, and real tests at every layer. Free and text-first.
- The Game You're About to Build
- A Crate Built for Two Targets
- Teaching the Crate the Rules
- Opening the wasm-bindgen Boundary
- Vite Meets wasm
- From FEN to Pixels
- Click to Move
- The Cheapest Opponent That Works
- A Game That Survives Reload
- The Tests That Earn Their Keep
- Testing Against the Real wasm
- Proof in a Real Browser
- The Wow Layer
- Build a Real Opponent (Bonus)