Skip to main content

Stats

Trait Stats 

Source
pub trait Stats {
    // Required method
    fn pip(&self, player: Player) -> Result<u8, Error>;
}
Expand description

Provides Backgammon statistics.

Required Methods§

Source

fn pip(&self, player: Player) -> Result<u8, Error>

Returns the Pip for a player.

Calculates the number of points a player must move their checkers to bear off.

Implementors§