Consider anchored blockers in CTF bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 20 Jun 2020 17:35:47 +0000 (19:35 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 20 Jun 2020 17:35:47 +0000 (19:35 +0200)
kingofthehill STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1485 W: 683 L: 573 D: 229
http://www.variantfishtest.org:6543/tests/view/5ee4b30e6e23db104fb88b26

kingofthehill LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 5214 W: 2182 L: 2024 D: 1008
http://www.variantfishtest.org:6543/tests/view/5ee5d1156e23db104fb88b88

src/evaluate.cpp

index 262d83b..eab948a 100644 (file)
@@ -927,6 +927,7 @@ namespace {
         Bitboard blocked = pos.pieces(Us, PAWN) | attackedBy[Them][ALL_PIECES];
         Bitboard doubleBlocked =  attackedBy2[Them]
                                 | (pos.pieces(Us, PAWN) & (shift<Down>(pos.pieces()) | attackedBy[Them][ALL_PIECES]))
+                                | (pos.pieces(Them) & pe->pawn_attacks(Them))
                                 | (pawn_attacks_bb<Them>(pos.pieces(Them, PAWN) & pe->pawn_attacks(Them)));
         Bitboard inaccessible = pos.pieces(Us, PAWN) & shift<Down>(pos.pieces(Them, PAWN));
         // Traverse all paths of the CTF pieces to the CTF targets.