2 ms·
It is a highly constrained search though. You need to verify moves against the piece that is checking only and then verify if the move potentially preventing th
by AstralStorm 10y ago
It is a highly constrained search though. You need to verify moves against the piece that is checking only and then verify if the move potentially preventing the check does not discover another check.
Even easier in case of double checks, since you exclude captures.
Verifying a tie or mate due to repetition is more tricky for a usual test, but not if you hash the whole board state.