From 20196cb5458fd5c04db001ea991cf7615cf09fba Mon Sep 17 00:00:00 2001 From: rektdie Date: Fri, 20 Mar 2026 21:51:37 +0100 Subject: [PATCH] placed pvs see above making move | bench 1326788 --- source/search.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index 1fa98bf..7c735b6 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -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(board, currMove, depth, moveSeen, ply, cutnode, improving, corrplexity, ttpv, ctx); int newDepth = depth + (copy.InCheck() && !ctx->excluded) - 1 + extension;