Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Aug 9, 2019
1 parent fcee0ce commit 78bb4ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,9 @@ namespace {
squaresToQueen = forward_file_bb(Us, s);
unsafeSquares = passed_pawn_span(Us, s);

bb = forward_file_bb(Them, s) & pos.pieces(ROOK, QUEEN);
bb = forward_file_bb(Them, s) & pos.pieces();
if (bb)
bb &= pos.pieces(ROOK, QUEEN) & frontmost_sq(Us, bb);

if (!(pos.pieces(Them) & bb))
unsafeSquares &= attackedBy[Them][ALL_PIECES];
Expand Down

0 comments on commit 78bb4ea

Please sign in to comment.