X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=7f421b9cd38401f4e5d4d94c9f1adff3649b348b;hp=b154c6d9f647bb48cf3eb45d52689f0d0943e0be;hb=10d2ebc6ae7aad8ee3a48aac41ad00321b1b7e78;hpb=7efc39d6833a0d999a7bf2f9b5629ceb246accd2 diff --git a/src/search.cpp b/src/search.cpp index b154c6d9..7f421b9c 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((168 - 51 * improving) * d / ONE_PLY); + return Value(198 * (d / ONE_PLY) - 178 * 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);