22 lines
631 B
Markdown
22 lines
631 B
Markdown
Draught
|
|
===============
|
|
|
|
![gof-ci](https://github.com/sarsoo/draught/actions/workflows/test.yml/badge.svg)
|
|
|
|
## [Try it Out!](https://sarsoo.github.io/draught/)
|
|
|
|
WASM-based checkers game. Looking to implement a minimax based AI.
|
|
|
|
Rust WASM module for game logic with a JS frontend for rendering and processing user input.
|
|
|
|
## Building
|
|
|
|
1. Setup a Rust + wasm-pack environment and a Node environment
|
|
2. Build the Rust library into a WASM module
|
|
- `wasm-pack build`
|
|
3. Move to the Js workspace
|
|
- `cd www`
|
|
4. Install the Js dependencies
|
|
- `npm install`
|
|
5. Build the Js frontend with Rust WASM module
|
|
- `npm run build` |