fixed 2 wrong comparisons when setting bestScore | bench 1652455

This commit is contained in:
rektdie committed 2026-03-14 03:03:08 +01:00
1 parent 1814cbc755
commit 7586608aaa
1 file changed
+2 -2
+2 -2
View File
@@ -265,10 +265,10 @@ static SearchResults Quiescence(Board& board, int alpha, int beta, int ply, Sear
case PV:
bestScore = entry.score;
case CutNode:
if (entry.score < bestScore)
if (entry.score > bestScore)
bestScore = entry.score;
case AllNode:
if (entry.score > bestScore)
if (entry.score < bestScore)
bestScore = entry.score;
}
}