pub trait GameRules {
    // Required methods
    fn with_beaver(self) -> Self;
    fn with_raccoon(self) -> Self;
    fn with_murphy(self, limit: u8) -> Self;
    fn with_jacoby(self) -> Self;
    fn with_holland(self) -> Self;
}
Expand description

Allows to modify the rules

Required Methods§

source

fn with_beaver(self) -> Self

When offered the cube, allow to re-double but keep it

source

fn with_raccoon(self) -> Self

If a player plays “beaver”, the other may double again, letting the opponent keep the cube

source

fn with_murphy(self, limit: u8) -> Self

If both players roll the same opening number, the dice is doubled, remaining in the middle of the board

source

fn with_jacoby(self) -> Self

Gammon and Backgammon only count for double or triple values if the cube has already been offered

source

fn with_holland(self) -> Self

Permits to double after Crawford game only if both players have rolled at least twice

Implementors§

source§

impl GameRules for Match

Implements SetRules for Match

source§

impl GameRules for Game

Implements SetRules for Game

source§

impl GameRules for Rules

Implements SetRules for Rules