currentPlayerIsHuman method

bool currentPlayerIsHuman()

Says if the player in turn is human.

Implementation

bool currentPlayerIsHuman() {
  final whiteTurn = fen.split(' ')[1] == 'w';
  return (whitePlayerType == PlayerType.human && whiteTurn) ||
      (blackPlayerType == PlayerType.human && !whiteTurn);
}