From: Fabian Fichter Date: Thu, 23 Apr 2020 19:28:53 +0000 (+0200) Subject: Only consider pawns as CTF blockers X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=95fa4460bb5919d206a58c2199a9b8fe7fba633c;p=fairystockfish.git Only consider pawns as CTF blockers 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index abcf22e..62a6e05 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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; } }