diff --git a/source/search.cpp b/source/search.cpp index 8289fec..c6c769e 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -681,8 +681,8 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC score = -PVS(copy, newDepth, -alpha - 1, -alpha, ply + 1, ctx, !cutnode).score; } - if (isPV && (moveSeen == 0 || score > alpha)) { - score = -PVS(copy, newDepth, -beta, -alpha, ply + 1, ctx, false).score; + if (isPV && (moveSeen == 1 || score > alpha)) { + score = -PVS(copy, newDepth, -beta, -alpha, ply + 1, ctx, false).score; } moveSeen++;