X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=aa27ec2b02eec827a5bb7b5b7092d2043044d041;hb=9ca014df497de8b3fa4a1da75e8af8a567141a90;hp=af7a5c13dd643f411e8bf1f94906e8269423f714;hpb=53c07c34bb0aba765e1add91bbc932dfce9bae52;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index af7a5c13..aa27ec2b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -82,7 +82,7 @@ namespace { // History and stats update bonus, based on depth int stat_bonus(Depth depth) { int d = depth / ONE_PLY; - return d > 17 ? 0 : 32 * d * d + 64 * d - 64; + return d > 17 ? 0 : 33 * d * d + 66 * d - 66; } // Skill structure is used to implement strength limit @@ -935,7 +935,8 @@ moves_loop: // When in check, search starts from here int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), DEPTH_ZERO) / ONE_PLY; // Countermoves based pruning (~20 Elo) - if ( lmrDepth < 3 + if ( lmrDepth < 4 + && (lmrDepth < 3 || ((ss - 1)->statScore > 0 && !PvNode)) && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold) continue;