isGameOver property

bool get isGameOver

Tests if the game is over.

Implementation

bool get isGameOver =>
    isVariantEnd || isInsufficientMaterial || !hasSomeLegalMoves;