canPass method
Determines whether player colour
can pass their turn in state
.
Implementation
bool canPass({required BishopState state, required int colour}) =>
passChecker
?.call(MoveParams(colour: colour, state: state, variant: this)) ??
false;