mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Fix a small bug in king safety
Merged from iPhone Glaurung. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -782,7 +782,7 @@ namespace {
|
|||||||
if ( bit_is_set(p.piece_attacks<QUEEN>(from), to)
|
if ( bit_is_set(p.piece_attacks<QUEEN>(from), to)
|
||||||
&& !bit_is_set(p.pinned_pieces(them), from)
|
&& !bit_is_set(p.pinned_pieces(them), from)
|
||||||
&& !(rook_attacks_bb(to, occ & ClearMaskBB[from]) & p.rooks_and_queens(us))
|
&& !(rook_attacks_bb(to, occ & ClearMaskBB[from]) & p.rooks_and_queens(us))
|
||||||
&& !(rook_attacks_bb(to, occ & ClearMaskBB[from]) & p.rooks_and_queens(us)))
|
&& !(bishop_attacks_bb(to, occ & ClearMaskBB[from]) & p.bishops_and_queens(us)))
|
||||||
|
|
||||||
ei.mateThreat[them] = make_move(from, to);
|
ei.mateThreat[them] = make_move(from, to);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user