mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 17:49:35 +00:00
Update bestValue when futility pruning
In qsearch we should update the bestValue as we do in case of futilityValue < beta, also when pruning moves with non-positive see. Spotted by Lucas Braesch Bench: 5695710
This commit is contained in:
parent
55df3fa2d7
commit
5af8179647
1 changed files with 4 additions and 3 deletions
|
@ -1217,9 +1217,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
|
|
||||||
if (futilityValue < beta)
|
if (futilityValue < beta)
|
||||||
{
|
{
|
||||||
if (futilityValue > bestValue)
|
bestValue = std::max(bestValue, futilityValue);
|
||||||
bestValue = futilityValue;
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1227,8 +1225,11 @@ split_point_start: // At split points actual search starts from here
|
||||||
if ( futilityBase < beta
|
if ( futilityBase < beta
|
||||||
&& depth < DEPTH_ZERO
|
&& depth < DEPTH_ZERO
|
||||||
&& pos.see(move) <= 0)
|
&& pos.see(move) <= 0)
|
||||||
|
{
|
||||||
|
bestValue = std::max(bestValue, futilityBase);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Detect non-capture evasions that are candidate to be pruned
|
// Detect non-capture evasions that are candidate to be pruned
|
||||||
evasionPrunable = !PvNode
|
evasionPrunable = !PvNode
|
||||||
|
|
Loading…
Add table
Reference in a new issue