X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=7a16ef8cfc08af9da7ab9e374d5baf338a5d8026;hp=69488ad583fb81f1798487c5be2f6422a0db9a10;hb=3984b8f8f0e1f53c737020c936f2a8372029545d;hpb=18279b24fc76bb6eaf6ac01f3032b1b90da5dabb diff --git a/src/search.cpp b/src/search.cpp index 69488ad5..7a16ef8c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -64,7 +64,7 @@ namespace { // Razor and futility margins constexpr int RazorMargin = 661; Value futility_margin(Depth d, bool improving) { - return Value(198 * (d / ONE_PLY) - 178 * improving); + return Value(198 * (d / ONE_PLY - improving)); } // Reductions lookup table, initialized at startup @@ -1074,7 +1074,8 @@ moves_loop: // When in check, search starts from here && moveCount > 1 + 3 * rootNode && ( !captureOrPromotion || moveCountPruning - || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha)) + || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha + || cutNode)) { Depth r = reduction(improving, depth, moveCount);