draught/README.md

24 lines
666 B
Markdown
Raw Normal View History

2021-06-25 18:02:45 +01:00
Draught
===============
![gof-ci](https://github.com/sarsoo/draught/actions/workflows/test.yml/badge.svg)
## [Try it Out!](https://sarsoo.github.io/draught/)
2021-07-13 12:07:33 +01:00
WebAssembly-based checkers game with a minimax-based AI player.
2021-06-25 18:02:45 +01:00
Rust WASM module for game logic with a JS frontend for rendering and processing user input.
2021-07-13 12:07:33 +01:00
![Screenshot](./docs/screenshot.png)
2021-06-25 18:02:45 +01:00
## 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`