]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Retire candidate passed pawns
[stockfish] / src / evaluate.cpp
index 63541c2affbe00fa56d3477e55a712b83ce4a98d..f4a5d4867b084ceb22d13194659cf3e25600eb03 100644 (file)
@@ -638,12 +638,6 @@ 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)))
-            bonus = bonus / 2;
-
         score += bonus - PassedFile * edge_distance(file_of(s));
     }