mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Update bestValue when futility pruning (2)
Same idea of 5af8179647
in qsearch() but applied to search()
After 15500 games at 15+0.05
ELO: 4.48 +-3.4 (95%) LOS: 99.5%
Total: 15500 W: 3061 L: 2861 D: 9578
bench: 4985829
This commit is contained in:
parent
09f1fdf52f
commit
0b4ea54da9
1 changed files with 7 additions and 2 deletions
|
@ -879,9 +879,14 @@ split_point_start: // At split points actual search starts from here
|
||||||
|
|
||||||
if (futilityValue < beta)
|
if (futilityValue < beta)
|
||||||
{
|
{
|
||||||
if (SpNode)
|
bestValue = std::max(bestValue, futilityValue);
|
||||||
splitPoint->mutex.lock();
|
|
||||||
|
|
||||||
|
if (SpNode)
|
||||||
|
{
|
||||||
|
splitPoint->mutex.lock();
|
||||||
|
if (bestValue > splitPoint->bestValue)
|
||||||
|
splitPoint->bestValue = bestValue;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue