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§

source

fn with_points(self, points: u32) -> Self

Set the amount of points to reach for declaring a winner

source

fn with_crawford(self) -> Self

When a player first reaches a score of points - 1, no doubling is allowed for the following game

Implementors§

source§

impl MatchRules for Match

Implements SetRules for Match

source§

impl MatchRules for Rules

Implements SetRules for Rules