tic-tac-toe-wasm
tic-tac-toe-wasm copied to clipboard
rust wasm tic-tac-toe
tic-tac-toe in rust/wasm
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
Prerequisites
Rust / Node / npm
rustup target add wasm32-unknown-unknown
Install
Make sure you have cargo install wasm-pack, then:
npm install
Run
npm start
Test
Run the rust tests
npm run test:rust