diff --git a/source/search.cpp b/source/search.cpp index 505edcc..f0124de 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -461,9 +461,9 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC // Late move pruning // If we are near a leaf node we prune moves // that are late in the list - if (!isPV && !board.InCheck() && currMove.IsQuiet() && notMated) { + if (currMove.IsQuiet() && notMated) { - int lmpThreshold = 7 + 4 * depth; + int lmpThreshold = 7 + depth * depth; if (moveSeen >= lmpThreshold) { continue;