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
+2
View File
@@ -1040,6 +1040,8 @@ moves_loop: // When in check, search starts here
// Futility pruning: parent node (~13 Elo)
if (!ss->inCheck && lmrDepth < 12 && futilityValue <= alpha)
{
if (bestValue <= futilityValue && !is_decisive(bestValue)
&& !is_win(futilityValue))
if (bestValue <= futilityValue && !is_decisive(bestValue)
&& !is_win(futilityValue))
bestValue = futilityValue;