Trait backgammon::rules::MatchRules
source · pub trait MatchRules {
// Required methods
fn with_points(self, points: u32) -> Self;
fn with_crawford(self) -> Self;
}
Expand description
Allows to modify the rules
Required Methods§
sourcefn with_points(self, points: u32) -> Self
fn with_points(self, points: u32) -> Self
Set the amount of points to reach for declaring a winner
sourcefn with_crawford(self) -> Self
fn with_crawford(self) -> Self
When a player first reaches a score of points - 1, no doubling is allowed for the following game
Implementors§
impl MatchRules for Match
Implements SetRules for Match
impl MatchRules for Rules
Implements SetRules for Rules