1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

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

View file

@ -1042,7 +1042,9 @@ moves_loop: // When in check, search starts here
{ {
if (bestValue <= futilityValue && !is_decisive(bestValue) if (bestValue <= futilityValue && !is_decisive(bestValue)
&& !is_win(futilityValue)) && !is_win(futilityValue))
bestValue = futilityValue; if (bestValue <= futilityValue && !is_decisive(bestValue)
&& !is_win(futilityValue))
bestValue = futilityValue;
continue; continue;
} }