canPass method

bool canPass({
  1. required BishopState state,
  2. required int colour,
})

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;