case WR: case BR: return piece_attacks_square<ROOK>(f, t);
case WQ: case BQ: return piece_attacks_square<QUEEN>(f, t);
case WK: case BK: return piece_attacks_square<KING>(f, t);
+ default: break;
}
return false;
}
case WR: case BR: return piece_attacks_square<ROOK>(t, s);
case WQ: case BQ: return piece_attacks_square<QUEEN>(t, s);
case WK: case BK: return piece_attacks_square<KING>(t, s);
+ default: break;
}
return false;
}
return bit_is_set(rook_attacks_bb(rto, b), ksq);
}
return false;
+
+ default: // NO_PIECE_TYPE
+ break;
}
assert(false);
return false;
castleRights &= castleRightsMask[to];
key ^= zobCastle[castleRights];
- // Reset rule 50 counter\r
+ // Reset rule 50 counter
rule50 = 0;
// Update checkers BB