Evaluate virtual pawn drop checks for bughouse
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:38:02 +0000 (15:38 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:38:02 +0000 (15:38 +0100)
bughouse
Total: 500 W: 265 L: 232 D: 3

src/evaluate.cpp

index 4fc31b0..fea27a4 100644 (file)
@@ -514,7 +514,7 @@ namespace {
                 unsafeChecks |= knightChecks;
             break;
         case PAWN:
-            if (pos.piece_drops() && pos.count_in_hand(Them, pt))
+            if (pos.piece_drops() && (pos.count_in_hand(Them, pt) || pos.two_boards()))
             {
                 pawnChecks = attacks_bb(Us, pt, ksq, pos.pieces()) & ~pos.pieces() & pos.board_bb();
                 if (pawnChecks & safe)