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:
parent
57e06be71f
commit
da82942b54
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue