ai-othello
An Othello rules and search library with bitboards and complete pass handling.
You can play against it compiled to Wasm here: https://thegustafson.com/games/othello
Self-play
The selfplay binary runs deterministic paired-color matches. Each opening is
played twice with the engines swapping Black and White.
The six built-in profiles are beginner, easy, medium, hard, expert,
and maximum. They progressively increase ordinary search depth and introduce
an empty-square threshold where the engine solves the rest of the game exactly.
Use the --a-* and --b-* options shown by selfplay --help to override them.
Library users can read the same settings with search_preset or
SEARCH_PRESETS.
Use it
Add the crate to your project:
[]
= "0.1"
use ;
let position = default;
let config = fixed_depth;
let result = search;
assert!;
The crate includes reversible moves, perft, phase-aware evaluation, alpha-beta search, exact endgame search, and a Cassio protocol adapter.
Licensed under the MIT License.