Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tiqtak

tolumide-ng579MIT OR Apache-2.01.0.1TypeScript support: included

simple to use Checkers engine

checkers, mcts, monte-carlo, search-heuristics, checkers-engine

readme

Checkers 🦅

crates.io npm version

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:

  1. Simply install flamegraph with cargo or check FlamegraphRs

How to Run this library:

  1. Simply clone this repository and cd into it
  2. To use the rust version directly, run: cargo run or cargo watch depending on the mode
  3. To generate the wasm build for js target, run: a. wasm-pack build --target bundler for npm targets b. wasm-pack build --target web if you're trying to reference the build directly locally nb: you'd find the build in the pkg folder (root folder)

Todo:

  • <input disabled="" type="checkbox"> More robust documentation
  • <input disabled="" type="checkbox"> More tests
  • <input disabled="" type="checkbox"> Fix releasing packages issue on github with (cross??)
  • <input disabled="" type="checkbox"> Examples on how this works
  • <input disabled="" type="checkbox"> Explain the architecture of this library
    • <input disabled="" type="checkbox"> The board representation
    • <input disabled="" type="checkbox"> MCTS approach?

Credit:

  1. Monte Carlo Tree Search – beginners guide
  2. Monte-Carlo Tree Search (MCTS)
  3. Checkers Bitboard Tutorial adopted for the 32bits migration of the bitboard used for this application