X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=55c520a4b0fcb65db715dbd65beea3fcedc6c08e;hp=a3d4a329a1f7c4075f68e7e5261104d679cbbffc;hb=4776dc0e126ed311f10f34bfa058a6c86e9d3ef1;hpb=bb5589b829b79d7c60a820d4b1634dccbc4bbb3f diff --git a/src/search.cpp b/src/search.cpp index a3d4a329..55c520a4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1049,6 +1049,13 @@ moves_loop: // When in check, search starts from here && captureHistory[movedPiece][to_sq(move)][type_of(pos.piece_on(to_sq(move)))] < 0) continue; + // Futility pruning for captures + if ( !givesCheck + && lmrDepth < 6 + && !ss->inCheck + && ss->staticEval + 270 + 384 * lmrDepth + PieceValue[MG][type_of(pos.piece_on(to_sq(move)))] <= alpha) + continue; + // See based pruning if (!pos.see_ge(move, Value(-194) * depth)) // (~25 Elo) continue;