Trait backgammon::rules::GameRules
source · 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§
sourcefn with_beaver(self) -> Self
fn with_beaver(self) -> Self
When offered the cube, allow to re-double but keep it
sourcefn with_raccoon(self) -> Self
fn with_raccoon(self) -> Self
If a player plays “beaver”, the other may double again, letting the opponent keep the cube
sourcefn with_murphy(self, limit: u8) -> Self
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
sourcefn with_jacoby(self) -> Self
fn with_jacoby(self) -> Self
Gammon and Backgammon only count for double or triple values if the cube has already been offered
sourcefn with_holland(self) -> Self
fn with_holland(self) -> Self
Permits to double after Crawford game only if both players have rolled at least twice