Reduce pawn evaluation for sittuyin
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 29 Apr 2020 17:59:14 +0000 (19:59 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 29 Apr 2020 17:59:14 +0000 (19:59 +0200)
sittuyin STC
LLR: 2.99 (-2.94,2.94) [0.00,10.00]
Total: 444 W: 68 L: 11 D: 365
http://www.variantfishtest.org:6543/tests/view/5ea875bc6e23db36d55f2a4c

sittuyin LTC
LLR: 2.99 (-2.94,2.94) [0.00,10.00]
Total: 484 W: 75 L: 17 D: 392
http://www.variantfishtest.org:6543/tests/view/5ea890676e23db36d55f2a52

src/pawns.cpp

index b28d8ad..e29c5ed 100644 (file)
@@ -131,7 +131,7 @@ namespace {
             e->passedPawns[Us] |= s;
 
         // Score this pawn
-        if (support | phalanx)
+        if ((support | phalanx) && (r < pos.promotion_rank() || !pos.mandatory_pawn_promotion()))
         {
             int v =  Connected[r] * (2 + bool(phalanx) - bool(opposed)) * (r == RANK_2 && pos.captures_to_hand() ? 3 : 1)
                    + 21 * popcount(support);