hasSomeLegalMoves property
bool
get
hasSomeLegalMoves
Tests if the position has at least one legal move.
Implementation
bool get hasSomeLegalMoves {
final context = _makeContext();
for (final square in board.bySide(turn).squares) {
if (_legalMovesOf(square, context: context).isNotEmpty) return true;
}
return false;
}