Skip to content

Commit

Permalink
Fix a small bug in king safety
Browse files Browse the repository at this point in the history
Merged from iPhone Glaurung.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information
mcostalba committed Mar 22, 2009
1 parent cc8e915 commit ef8acdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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);
} }
Expand Down

0 comments on commit ef8acdc

Please sign in to comment.