]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Change history reduction in LMR to be a full ply.
[stockfish] / src / search.cpp
index 945f5bf25d9c9d88687e9a36e0ad3ff3285fe823..05e3de51c187257eb82c8a55f7f00472b463ef94 100644 (file)
@@ -823,12 +823,10 @@ moves_loop: // When in check and at SpNode search starts from here
       {
           ss->reduction = reduction<PvNode>(improving, depth, moveCount);
 
-          if (!PvNode && cutNode)
+          if (   (!PvNode && cutNode)
+              ||  History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
               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);