undo method

dynamic undo()

Takeback the last half-move, returning a move Map if successful, otherwise null.

Implementation

undo() {
  var move = undoMove();
  return (move != null) ? makePretty(move) : null;
}