X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=b9ca3961053d435b2207ebe30d1ae6970ecb4ac3;hb=5a30b087c3a3c4435e680e6c61082d5432fa0ace;hp=41096c9c7d2b751fd019c28b6fa2409284021907;hpb=e4e61cd9cc953e6bc17070da84639d53b7514709;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 41096c9c..b9ca3961 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1164,6 +1164,11 @@ moves_loop: // When in check, search starts here if ((ss+1)->cutoffCnt > 3) r++; + // Decrease reduction if move is a killer and we have a good history + if (move == ss->killers[0] + && (*contHist[0])[movedPiece][to_sq(move)] >= 3600) + r--; + ss->statScore = 2 * thisThread->mainHistory[us][from_to(move)] + (*contHist[0])[movedPiece][to_sq(move)] + (*contHist[1])[movedPiece][to_sq(move)] @@ -1551,9 +1556,9 @@ moves_loop: // When in check, search starts here } } - // Do not search moves with negative SEE values (~5 Elo) + // Do not search moves with bad enough SEE values (~5 Elo) if ( bestValue > VALUE_TB_LOSS_IN_MAX_PLY - && !pos.see_ge(move)) + && !pos.see_ge(move, Value(-108))) continue; // Speculative prefetch as early as possible