mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 03:57:45 +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:
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user