]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
History Pruning: Don't prune the main killer move.
[stockfish] / src / search.cpp
index 13fb4b300936492657ee375d0d14c3e9bf460e46..4a0302e51f9e7087d72892bdc23e84339ddef191 100644 (file)
@@ -921,7 +921,8 @@ moves_loop: // When in check search starts from here
               continue;
 
           // History based pruning
-          if (   depth <= 3 * ONE_PLY
+          if (   depth <= 4 * ONE_PLY
+              && move != ss->killers[0]
               && thisThread->history[pos.moved_piece(move)][to_sq(move)] < VALUE_ZERO
               && cmh[pos.moved_piece(move)][to_sq(move)] < VALUE_ZERO)
               continue;