inDraw property

bool inDraw

Implementation

bool get inDraw {
  return halfMoves >= 100 ||
      inStalemate ||
      insufficientMaterial ||
      inThreefoldRepetition;
}