Pvs template #27

Merged
rektdie merged 2 commits from pvs_template into main 2025-03-21 16:12:13 +01:00
Showing only changes of commit 8639c4d4c3 - Show all commits
+2 -2
View File
@@ -241,7 +241,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
// First move (suspected PV node) // First move (suspected PV node)
if (!i) { if (!i) {
// Full search // Full search
score = -PVS<true>(copy, depth - 1, -beta, -alpha, ply + 1).score; score = -PVS<isPV>(copy, depth - 1, -beta, -alpha, ply + 1).score;
} else if (reductions) { } else if (reductions) {
// Null-window search with reductions // Null-window search with reductions
score = -PVS<false>(copy, depth - 1 - reductions, -alpha-1, -alpha, ply + 1).score; score = -PVS<false>(copy, depth - 1 - reductions, -alpha-1, -alpha, ply + 1).score;
@@ -257,7 +257,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
// Check if we need to do full window re-search // Check if we need to do full window re-search
if (i && score > alpha && score < beta) { if (i && score > alpha && score < beta) {
score = -PVS<true>(copy, depth - 1, -beta, -alpha, ply + 1).score; score = -PVS<isPV>(copy, depth - 1, -beta, -alpha, ply + 1).score;
} }
positionIndex--; positionIndex--;