A 3.7 KB Othello Engine: Bitboards in Rust, Raw WASM, No wasm-bindgen (opens in new tab)
Othello legal-move generation is seven lines of bitboard bitwise ops. I knew this existed; I'd never actually written it. So I built a Reversi engine in Rust, compiled it to raw WebAssembly without wasm-bindgen, and ended up with a 3.7 KB .wasm that plays a credible game against you in the browser. ๐ฆ GitHub: ๐ Demo: Stack summary: Rust, no_std, zero heap allocations Raw WebAssembly.instantiate โ no wasm-bindgen, no generated JS glue Vanilla JS + HTML + CSS for the board UI Alpha-beta negamax ...
Read the original article