NAME
Game::Backgammon::Turn - the dice, and the moves chosen for them
DESCRIPTION
The unit of play. A move on its own is never legal or illegal in backgammon: the rules constrain the whole set, so a turn is what legal_turns returns, what the log stores, and what a player picks.
notation prints standard notation, collapsing repeats to 8/5(2). key is the multiset of moves, so two orders reaching the same position compare equal.
ATTRIBUTES
player, dice, moves
METHODS
player, dice, moves
The attributes, as readers.
is_doubles, is_forfeit
with_move($move)
A new turn with one more move on the end.
pips_used
What the turn spent, which is how the larger-die rule is stated.