A Rust/Wasm implementation of Tic Tac Toe.
The ui is stil in plain javascript.
There is also js implementation of the ai for comparaison with wasm.
It use a Monte Carlo simulation to power the Ai
Rust / Node / npm
rustup target add wasm32-unknown-unknown
Make sure you have cargo install wasm-pack
, then:
npm install
npm start
Run the rust tests
npm run test:rust