removeLast method

void removeLast()

Remove the last recorded state of the board.

Implementation

void removeLast() {
  _states.removeLast();
  _commands.removeLast();
  _positions.removeLast();
}