X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=81b3f29f335119e4aa7945f689fb68205dca7279;hp=112e149dc1cd7c6a297daa5b02eed7d9e009921e;hb=e27d3bb884dc17027010c1ea8f7e7d9efb383d4c;hpb=16e1881126f939383ceaaa3ec45163e760353b26 diff --git a/src/search.cpp b/src/search.cpp index 112e149d..81b3f29f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -919,7 +919,7 @@ moves_loop: // When in check search starts from here // Step 13. Pruning at shallow depth if ( !rootNode - && bestValue > VALUE_MATED_IN_MAX_PLY) + && bestValue > VALUE_MATED_IN_MAX_PLY) { if ( !captureOrPromotion && !givesCheck @@ -941,6 +941,7 @@ moves_loop: // When in check search starts from here // Futility pruning: parent node if ( lmrDepth < 7 + && !inCheck && ss->staticEval + 256 + 200 * lmrDepth <= alpha) continue; @@ -950,6 +951,7 @@ moves_loop: // When in check search starts from here continue; } else if ( depth < 7 * ONE_PLY + && !extension && !pos.see_ge(move, Value(-35 * depth / ONE_PLY * depth / ONE_PLY))) continue; }