X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=6275cdf283e3961fc5c4529b57b5788271434ea7;hp=f412d9d6f1a1573fefbadeccdbed2d7513115ca9;hb=a0fca67da4c5ae21bcc783acc03f3da2a6fbcd80;hpb=26edf9534ad571a6d26bf9db47d21776cbf45d54 diff --git a/src/search.cpp b/src/search.cpp index f412d9d6..6275cdf2 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -907,7 +907,7 @@ namespace { && !ttMove) depth -= 2; -moves_loop: // When in check, search starts from here +moves_loop: // When in check, search starts here ttCapture = ttMove && pos.capture_or_promotion(ttMove); @@ -1017,8 +1017,8 @@ moves_loop: // When in check, search starts from here { // Continuation history based pruning (~20 Elo) if ( lmrDepth < 5 - && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold - && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold) + && (*contHist[0])[movedPiece][to_sq(move)] < (depth == 1 ? 0 : -stat_bonus(depth-1)) + && (*contHist[1])[movedPiece][to_sq(move)] < (depth == 1 ? 0 : -stat_bonus(depth-1))) continue; // Futility pruning: parent node (~5 Elo)