A 3.7 KB Othello Engine: Bitboards in Rust, Raw WASM, No wasm-bindgen

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. …

View Post on Scour ↗

More from DEV Community on Scour.

Discussed on DEV