playing matches in datagen | bench 1857933

This commit is contained in:
rektdie committed 2025-04-01 20:15:44 +02:00
1 parent f4eeec2b4e
commit 649bee6490
4 files changed
+52 -43

No files matched your search

+3 -3
View File
@@ -323,6 +323,9 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
score = -PVS<isPV, mode>(copy, newDepth, -beta, -alpha, ply + 1).score;
}
moveSeen++;
positionIndex--;
if (searchStopped) return 0;
if (currMove.IsQuiet()) {
@@ -330,9 +333,6 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
seenQuietsCount++;
}
moveSeen++;
positionIndex--;
// Fail high (beta cutoff)
if (score >= beta) {
if (!currMove.IsCapture()) {