Add functions to check for decisive scores

Thanks to peregrineshahin and robbyrobbyrob for their suggestions.

closes https://github.com/official-stockfish/Stockfish/pull/5696

No functional change
This commit is contained in:
Nonlinear2
2024-11-22 11:24:43 +01:00
committed by Disservin
parent 57e06be71f
commit da82942b54
+3 -1
View File
@@ -1042,7 +1042,9 @@ moves_loop: // When in check, search starts here
{
if (bestValue <= futilityValue && !is_decisive(bestValue)
&& !is_win(futilityValue))
bestValue = futilityValue;
if (bestValue <= futilityValue && !is_decisive(bestValue)
&& !is_win(futilityValue))
bestValue = futilityValue;
continue;
}