Redefine passed pawns for sittuyin
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 27 Aug 2019 19:00:20 +0000 (21:00 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 29 Aug 2019 20:19:55 +0000 (22:19 +0200)
sittuyin STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 500 W: 112 L: 48 D: 340
http://35.161.250.236:6543/tests/view/5d657e296e23db3768ec0791

sittuyin LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 454 W: 101 L: 38 D: 315
http://35.161.250.236:6543/tests/view/5d65a2566e23db3768ec079f

src/pawns.cpp

index 86dc11c..716df21 100644 (file)
@@ -124,7 +124,7 @@ namespace {
 
         // Passed pawns will be properly scored later in evaluation when we have
         // full attack info.
-        if (passed && is_ok(s + Up))
+        if (passed && is_ok(s + Up) && (r < pos.promotion_rank() || !pos.mandatory_pawn_promotion()))
             e->passedPawns[Us] |= s;
 
         // Score this pawn