when moveseen = 0, returning alpha in case of excluded move | bench 1293332 #190

Merged
rektdie merged 1 commits from excluded-terminal-decision into main 2026-10-03 09:19:54 +02:00
Showing only changes of commit f77c4c1fbd - Show all commits
+2 -5
View File
@@ -798,11 +798,8 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
}
if (moveSeen == 0) {
if (inCheck) { // checkmate
return -MATE_SCORE + ply;
} else { // stalemate
return 0;
}
if (ctx->excluded) return alpha;
return inCheck ? -MATE_SCORE + ply : 0;
}
if (searchStopped.load(std::memory_order_relaxed)) return 0;