Only consider pawns as CTF blockers
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 23 Apr 2020 19:28:53 +0000 (21:28 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 23 Apr 2020 19:28:53 +0000 (21:28 +0200)
kingofthehill STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 10881 W: 4756 L: 4513 D: 1612
http://www.variantfishtest.org:6543/tests/view/5e9dedad6e23db36d55f29fe

kingofthehill LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 7631 W: 3280 L: 3085 D: 1266
http://www.variantfishtest.org:6543/tests/view/5e9e0ed26e23db36d55f2a08

racingkings STC
LLR: -2.97 (-2.94,2.94) [0.00,10.00]
Total: 6852 W: 2200 L: 2190 D: 2462
http://www.variantfishtest.org:6543/tests/view/5e9dedc86e23db36d55f2a01

racingkings LTC
LLR: -2.98 (-2.94,2.94) [0.00,10.00]
Total: 14921 W: 4163 L: 4063 D: 6695
http://www.variantfishtest.org:6543/tests/view/5e9e0eda6e23db36d55f2a0a

src/evaluate.cpp

index abcf22e..62a6e05 100644 (file)
@@ -929,7 +929,7 @@ namespace {
                 Bitboard attacks = (  (PseudoAttacks[Us][ptCtf][s] & pos.pieces())
                                     | (PseudoMoves[Us][ptCtf][s] & ~pos.pieces())) & ~processed & pos.board_bb();
                 ctfPieces |= attacks & ~pos.pieces(Us) & ~attackedBy[Them][ALL_PIECES];
-                onHold |= attacks & ~((pos.pieces(Us) & attackedBy[Them][ALL_PIECES]) | attackedBy2[Them]);
+                onHold |= attacks & ~((pos.pieces(Us, PAWN) & attackedBy[Them][ALL_PIECES]) | attackedBy2[Them]);
                 onHold2 |= attacks;
             }
         }