From 72c6e8528c630523d77bed8caa8ffb3911443721 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Tue, 27 Aug 2019 21:00:20 +0200 Subject: [PATCH] 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 --- src/pawns.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.0.4