backward method
Goes one step back through the history and returns the previous move.
Implementation
PlayedMove backward() {
final PlayedMove move = undo();
futureMoves.add(move);
return move;
}
Goes one step back through the history and returns the previous move.
PlayedMove backward() {
final PlayedMove move = undo();
futureMoves.add(move);
return move;
}