]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Reduce negative quiets by ONE_PLY / 2
[stockfish] / src / search.cpp
index 4ab17fd85ae80d82273841ffc08296763631f019..63c9e076f61ce6a713a162bace28dfde429b9fa9 100644 (file)
@@ -949,8 +949,11 @@ moves_loop: // When in check and at SpNode search starts from here
           if (!PvNode && cutNode)
               ss->reduction += ONE_PLY;
 
+          else if (History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
+              ss->reduction += ONE_PLY / 2;
+
           if (move == countermoves[0] || move == countermoves[1])
-              ss->reduction = std::max(DEPTH_ZERO, ss->reduction-ONE_PLY);
+              ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
 
           Depth d = std::max(newDepth - ss->reduction, ONE_PLY);
           if (SpNode)