mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user