Skip to content

Commit 0b4ea54

Browse files
committed
Update bestValue when futility pruning (2)
Same idea of 5af8179 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
1 parent 09f1fdf commit 0b4ea54

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/search.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,14 @@ namespace {
879879

880880
if (futilityValue < beta)
881881
{
882+
bestValue = std::max(bestValue, futilityValue);
883+
882884
if (SpNode)
885+
{
883886
splitPoint->mutex.lock();
884-
887+
if (bestValue > splitPoint->bestValue)
888+
splitPoint->bestValue = bestValue;
889+
}
885890
continue;
886891
}
887892

0 commit comments

Comments
 (0)