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