https://github.com/bramp/ultimate-tic-tac-toe
https://github.com/bramp/ultimate-tic-tac-toe
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bramp/ultimate-tic-tac-toe
- Owner: bramp
- License: apache-2.0
- Created: 2022-12-29T18:14:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T18:18:35.000Z (over 3 years ago)
- Last Synced: 2025-03-25T18:51:10.744Z (over 1 year ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wasm
```shell
# Build the wasm and package into `pkg`.
wasm-pack build
# Start webpack-dev-server to monitor changes.
cd www
npm run start
# To ensure your rust wasm is correctly monitored.
cargo watch -i "pkg/*" \
-s "wasm-pack build && cp -r pkg/ www/node_modules/ultimate-tic-tac-toe/"
```
# Dev Tools
```shell
cargo install cargo-watch
cargo install cargo-flamegraph
```
# Profiling
```shell
cargo flamegraph --root
```
Games: 2251132 (22511.32/s)
Winners:
O: 922651 41.0% (goes first)
X: 827920 36.8% (goes second)
Draws: 500561 22.2%