inCheck property
bool
inCheck
Is the current player's king in check?
Implementation
bool get inCheck =>
state.meta?.inCheck[state.turn] ?? kingAttacked(state.turn);
Is the current player's king in check?
bool get inCheck =>
state.meta?.inCheck[state.turn] ?? kingAttacked(state.turn);