rollDice method

int rollDice()

Rolls the dice for the current (human) player and returns the value.

Throws a StateError if it is a bot's turn, the game is paused or over, a piece selection is pending, or a move is animating.

Implementation

int rollDice() {
  _checkHumanTurn('rollDice');
  return _roll();
}