Skip to main content

ai_backgammon/
lib.rs

1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3
4mod board;
5mod dice;
6mod evaluation;
7mod game;
8mod movegen;
9mod play;
10mod protocol;
11mod reference;
12mod search;
13/// Deterministic paired-game tools for screening agents with shared dice streams.
14pub mod selfplay;
15mod turn;
16#[cfg(feature = "wasm")]
17mod wasm;
18
19pub use board::{GameKind, GameOutcome, Player, Point, Position, PositionError, Undo};
20pub use dice::{DICE_OUTCOMES, Dice, DiceError, DiceOutcome};
21pub use evaluation::{Equity, evaluate_position, pip_count};
22pub use game::{Game, GameError, GamePhase};
23pub use play::{Location, Play, PlayError, PlayOutcome, Step, StepError};
24pub use protocol::Engine;
25pub use search::{
26    SEARCH_PRESETS, SearchOptions, SearchPreset, SearchReport, Searcher, search_preset,
27};
28pub use turn::{Turn, TurnError};
29#[cfg(feature = "wasm")]
30pub use wasm::BackgammonSession;
31
32#[doc(hidden)]
33pub mod verification {
34    pub use crate::reference::legal_plays as reference_legal_plays;
35}