Skip to content

Commit

Permalink
Update bestValue when futility pruning (2)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mcostalba committed Mar 24, 2013
1 parent 09f1fdf commit 0b4ea54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,14 @@ namespace {

if (futilityValue < beta)
{
bestValue = std::max(bestValue, futilityValue);

if (SpNode)
{
splitPoint->mutex.lock();

if (bestValue > splitPoint->bestValue)
splitPoint->bestValue = bestValue;
}
continue;
}

Expand Down

0 comments on commit 0b4ea54

Please sign in to comment.