fixed 2 wrong comparisons when setting bestScore | bench 1652455
This commit is contained in:
1 parent
1814cbc755
commit
7586608aaa
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user