]> git.sesse.net Git - stockfish/commitdiff
Simplify a candidate passer condition.
author31m059 <37052095+31m059@users.noreply.github.com>
Tue, 31 Mar 2020 01:53:02 +0000 (21:53 -0400)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 2 Apr 2020 12:56:30 +0000 (14:56 +0200)
STC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 31528 W: 6208 L: 6061 D: 19259
Ptnml(0-2): 541, 3673, 7205, 3788, 557
https://tests.stockfishchess.org/tests/view/5e825db0e42a5c3b3ca2ee21

LTC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 38546 W: 5083 L: 5009 D: 28454
Ptnml(0-2): 299, 3628, 11362, 3668, 316
https://tests.stockfishchess.org/tests/view/5e826ec7e42a5c3b3ca2ee2a

closes https://github.com/official-stockfish/Stockfish/pull/2607

Bench: 5139561

src/evaluate.cpp

index 63541c2affbe00fa56d3477e55a712b83ce4a98d..57491f343f9a6ee8fb5133aaba96beba4279d643 100644 (file)
@@ -639,9 +639,8 @@ namespace {
         } // r > RANK_3
 
         // Scale down bonus for candidate passers which need more than one
-        // pawn push to become passed, or have a pawn in front of them.
-        if (   !pos.pawn_passed(Us, s + Up)
-            || (pos.pieces(PAWN) & (s + Up)))
+        // pawn push to become passed.
+        if (!pos.pawn_passed(Us, s + Up))
             bonus = bonus / 2;
 
         score += bonus - PassedFile * edge_distance(file_of(s));