X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=8f9fa62c832150f7f5c02e3b38ee9354aee9399b;hp=12c89de457b187bc4898e3d9956a05a9d0b4bebb;hb=8bb5a436b240d22e3e9729a1cd094169941afd7c;hpb=4bb11e823fb292b8cc81ac873ccca9827af462be diff --git a/src/search.cpp b/src/search.cpp index 12c89de4..8f9fa62c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1063,10 +1063,12 @@ moves_loop: // When in check, search starts here && history < -3000 * depth + 3000) continue; + history += thisThread->mainHistory[us][from_to(move)]; + // Futility pruning: parent node (~5 Elo) if ( !ss->inCheck && lmrDepth < 8 - && ss->staticEval + 172 + 145 * lmrDepth + history / 256 <= alpha) + && ss->staticEval + 172 + 145 * lmrDepth + history / 128 <= alpha) continue; // Prune moves with negative SEE (~20 Elo)