X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=af8ddaba5a420887d0c5a98907b7ca975d4b802d;hb=a1a83f38691ae3f39c827a46e59ae9875605aa3b;hp=187f21694ef932d543eb474f8914719d9c2a46f1;hpb=31ebd918ea54b8c9fccbc1e1fa269772ed0949df;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 187f2169..af8ddaba 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1017,8 +1017,8 @@ moves_loop: // When in check, search starts here { // Continuation history based pruning (~20 Elo) if ( lmrDepth < 5 - && (*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))) + && (*contHist[0])[movedPiece][to_sq(move)] < 23 - 23 * depth * depth + && (*contHist[1])[movedPiece][to_sq(move)] < 23 - 23 * depth * depth) continue; // Futility pruning: parent node (~5 Elo) @@ -1027,7 +1027,7 @@ moves_loop: // When in check, search starts here continue; // Prune moves with negative SEE (~20 Elo) - if (!pos.see_ge(move, Value(-(30 - std::min(lmrDepth, 18)) * lmrDepth * lmrDepth))) + if (!pos.see_ge(move, Value(-21 * lmrDepth * lmrDepth - 21 * lmrDepth))) continue; } }