18 releases (7 stable)
Uses new Rust 2024
| 1.0.7 | Jul 14, 2025 |
|---|---|
| 1.0.5 | Jul 13, 2025 |
| 1.0.2 | Jun 29, 2025 |
| 0.1.8 | May 25, 2025 |
#318 in Game dev
1,286 downloads per month
83KB
2K
SLoC
Checkers 🦅
Simple Checkers engine, that handles all the checkers game logic for you, so you don't have to care.
The current implementation uses MCTS(Monte-Carlo Tree Search), in the future, this program might be extended to allow users provide their desired search heuristic algorithm
Available on npm and crates.io
To run flamegraph:
- Simply install flamegraph with cargo or check FlamegraphRs
How to Run this library:
- Simply clone this repository and cd into it
- To use the rust version directly, run:
cargo runorcargo watchdepending on themode - To generate the wasm build for js target, run:
a.
wasm-pack build --target bundlerfor npm targets b.wasm-pack build --target webif you're trying to reference the build directly locally nb: you'd find thebuildin the pkg folder (root folder)
Todo:
- More robust documentation
- More tests
- Fix releasing packages issue on github with (cross??)
- Examples on how this works
- Explain the architecture of this library
- The board representation
- MCTS approach?
Credit:
- Monte Carlo Tree Search – beginners guide
- Monte-Carlo Tree Search (MCTS)
- Checkers Bitboard Tutorial adopted for the 32bits migration of the bitboard used for this application
Dependencies
~0.2–1MB
~19K SLoC