placed pvs see above making move | bench 1326788

This commit is contained in:
rektdie committed 2026-03-20 21:51:37 +01:00
1 parent e33b88277b
commit 20196cb545
1 file changed
+7 -6
+7 -6
View File
@@ -565,6 +565,13 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
continue;
}
// PVS SEE
int SEEThreshold = currMove.IsQuiet() ? seeQuietThreshold * depth : seeNoisyThreshold * depth * depth;
if (ply && depth <= 10 && !SEE(board, currMove, SEEThreshold))
continue;
if (!board.IsLegal(currMove)) continue;
Board copy = board;
copy.MakeMove(currMove);
@@ -623,12 +630,6 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
cutnode |= extension < 0;
// PVS SEE
int SEEThreshold = currMove.IsQuiet() ? seeQuietThreshold * depth : seeNoisyThreshold * depth * depth;
if (ply && depth <= 10 && !SEE(board, currMove, SEEThreshold))
continue;
int reductions = GetReductions<isPV>(board, currMove, depth, moveSeen, ply, cutnode, improving, corrplexity, ttpv, ctx);
int newDepth = depth + (copy.InCheck() && !ctx->excluded) - 1 + extension;