Cutnode #65

Merged
rektdie merged 9 commits from cutnode into main 2025-05-23 17:20:06 +02:00
Showing only changes of commit 40d67d1017 - Show all commits
+4
View File
@@ -342,7 +342,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
// First move (suspected PV node)
if (!moveSeen) {
// Full search
if constexpr (isPV) {
score = -PVS<isPV, mode>(copy, newDepth, -beta, -alpha, ply + 1, ctx, false).score;
} else {
score = -PVS<isPV, mode>(copy, newDepth, -beta, -alpha, ply + 1, ctx, !cutnode).score;
}
} else if (reductions) {
// Null-window search with reductions
score = -PVS<false, mode>(copy, newDepth - reductions, -alpha-1, -alpha, ply + 1, ctx, true).score;