Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sepiropht/tic-tac-toe-wasm
- Owner: sepiropht
- License: apache-2.0
- Created: 2019-01-14T15:29:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T16:17:35.000Z (almost 4 years ago)
- Last Synced: 2023-08-17T20:27:36.440Z (over 1 year ago)
- Topics: ai, beginner-project, js, react-hooks, rust, wasm
- Language: JavaScript
- Homepage: https://sepiropht.github.io/tic-tac-toe-wasm/
- Size: 567 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
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
```