From: Fabian Fichter Date: Sat, 20 Jun 2020 17:35:47 +0000 (+0200) Subject: Consider anchored blockers in CTF bonus X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=77a94f84b6b3cd02233670bad45a8488714280b2;p=fairystockfish.git Consider anchored blockers in CTF bonus 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 262d83b..eab948a 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -927,6 +927,7 @@ namespace { Bitboard blocked = pos.pieces(Us, PAWN) | attackedBy[Them][ALL_PIECES]; Bitboard doubleBlocked = attackedBy2[Them] | (pos.pieces(Us, PAWN) & (shift(pos.pieces()) | attackedBy[Them][ALL_PIECES])) + | (pos.pieces(Them) & pe->pawn_attacks(Them)) | (pawn_attacks_bb(pos.pieces(Them, PAWN) & pe->pawn_attacks(Them))); Bitboard inaccessible = pos.pieces(Us, PAWN) & shift(pos.pieces(Them, PAWN)); // Traverse all paths of the CTF pieces to the CTF targets.