NAME
Game::Backgammon::Move - one checker moving once
DESCRIPTION
from is a point number in the mover's own numbering or the string bar; to is a point number or off. is_bar and is_off say which, so nothing has to remember whether the bar is point 25.
die is the die this move spent, carried rather than derived: bearing off with a higher roll means from - to is not the die.
ATTRIBUTES
player, from, to, die, hit
METHODS
player, from, to, die, hit
The attributes, as readers.
is_bar, is_off
Whether the move starts on the bar or ends off the board.
notation
8/5, bar/20, 6/off, with * for a hit.
same_as($other)
Whether two moves are the same move, for collapsing 8/5(2).