2024-07-28 14:39:58 +01:00
2024-07-28 14:39:58 +01:00
2024-02-01 19:05:13 +00:00
2024-02-01 21:18:21 +00:00
2024-07-19 23:32:22 +01:00
2024-07-19 22:45:29 +01:00
2024-02-01 19:05:13 +00:00
2024-02-01 19:05:13 +00:00
2024-02-09 18:53:54 +00:00

Draught

gof-ci

Try it Out!

WebAssembly-based checkers game with a minimax-based AI player.

Rust WASM module for game logic with a JS frontend for rendering and processing user input.

Read the docs here. Read the blog post here.

Screenshot

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
Languages
Rust 84.8%
JavaScript 9.1%
HTML 5.6%
Dockerfile 0.5%