X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f0ee1b2b90f628c389627c29a989c98936017322;hp=5f0a0f3b901e1bbdbbafd89ebafd98e0ea5950f9;hb=5f096e9bef7dd2fa5506066f38a477944aa715cc;hpb=20023ac9b8c28d8b15308d7bf5be4fad8501535d diff --git a/src/search.cpp b/src/search.cpp index 5f0a0f3b..f0ee1b2b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -606,7 +606,7 @@ namespace { Key posKey; Move ttMove, move, excludedMove, bestMove; Depth extension, newDepth, predictedDepth; - Value bestValue, value, ttValue, eval, nullValue, futilityValue; + Value bestValue, value, ttValue, eval, nullValue; bool ttHit, inCheck, givesCheck, singularExtensionNode, improving; bool captureOrPromotion, doFullDepthSearch; Piece moved_piece; @@ -971,16 +971,9 @@ moves_loop: // When in check search starts from here predictedDepth = std::max(newDepth - reduction(improving, depth, moveCount), DEPTH_ZERO); // Futility pruning: parent node - if (predictedDepth < 7 * ONE_PLY) - { - futilityValue = ss->staticEval + futility_margin(predictedDepth) + 256; - - if (futilityValue <= alpha) - { - bestValue = std::max(bestValue, futilityValue); - continue; - } - } + if ( predictedDepth < 7 * ONE_PLY + && ss->staticEval + futility_margin(predictedDepth) + 256 <= alpha) + continue; // Prune moves with negative SEE at low depths if (predictedDepth < 4 * ONE_PLY && pos.see_sign(move) < VALUE_ZERO)