Crate bkgm

Crate bkgm 

Source

Re-exports§

pub use dice::Dice;
pub use position::GameResult;
pub use position::GameState;
pub use position::Position;
pub use position::State;
pub use position::O_BAR;
pub use position::X_BAR;

Modules§

dice
position
utils

Macros§

bpos
Simple way to create positions for testing The starting position would be: pos!(x 24:2, 13:5, 8:3, 6:5; o 19:5, 17:3, 12:5, 1:2) The order is not important, so this is equivalent: pos!(x 24:2, 13:5, 8:3, 6:5; o 1:2, 12:5, 17:3, 19:5) TODO: change macro to remove X_BAR and O_BAR
hpos
Simple way to create positions for testing The starting position would be: pos!(x 24:2, 13:5, 8:3, 6:5; o 19:5, 17:3, 12:5, 1:2) The order is not important, so this is equivalent: pos!(x 24:2, 13:5, 8:3, 6:5; o 1:2, 12:5, 17:3, 19:5) TODO: change macro to remove X_BAR and O_BAR
pos
Simple way to create positions for testing The starting position would be: pos!(x 24:2, 13:5, 8:3, 6:5; o 19:5, 17:3, 12:5, 1:2) The order is not important, so this is equivalent: pos!(x 24:2, 13:5, 8:3, 6:5; o 1:2, 12:5, 17:3, 19:5)

Structs§

Backgammon
Hypergammon