reset method

void reset()

Resets the board to its initialFENState.

Implementation

void reset() {
  board = _emptyBoard;
  initFEN(initialFENState);
  isDraw = false;
  resign = null;
  _stopwatchWhite.reset();
  _stopwatchBlack.reset();
  _timer?.cancel();
  history.clear();
  redoHistory.clear();
}