hasInsufficientMaterial

Checks if the given board position has insufficient material for either player to checkmate.

Return

True if there is insufficient material, false otherwise.

Parameters

board

The board to check.