Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sepiropht/tic-tac-toe-wasm

rust wasm tic-tac-toe
https://github.com/sepiropht/tic-tac-toe-wasm

ai beginner-project js react-hooks rust wasm

Last synced: about 2 months ago
JSON representation

rust wasm tic-tac-toe

Awesome Lists containing this project

README

        

# tic-tac-toe in rust/wasm

[![Demo](https://img.shields.io/badge/demo-online-blue.svg)](https://sepiropht.github.io/tic-tac-toe-wasm/) [![Greenkeeper badge](https://badges.greenkeeper.io/sepiropht/tic-tac-toe-wasm.svg)](https://greenkeeper.io/)

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

```shell
rustup target add wasm32-unknown-unknown
```

## Install

Make sure you have `cargo install wasm-pack`, then:

```shell
npm install
```

## Run

```shell
npm start
```

## Test

Run the rust tests

```shell
npm run test:rust
```