From: Fabian Fichter Date: Tue, 27 Aug 2019 19:00:20 +0000 (+0200) Subject: Redefine passed pawns for sittuyin X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=72c6e8528c630523d77bed8caa8ffb3911443721;p=fairystockfish.git Redefine passed pawns for sittuyin 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 --- diff --git a/src/pawns.cpp b/src/pawns.cpp index 86dc11c..716df21 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -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