Skip to content

sepiropht/tic-tac-toe-wasm

Repository files navigation

tic-tac-toe in rust/wasm

Demo Greenkeeper badge

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