mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Try to prune also when approximateEval < beta
Now we always try to filter out moves, we will have more wasted evaluation calls, but also more pruned nodes. After 786 games Mod vs Orig +196 =413 -177 +8 ELO Verified also against Rybka it increases score to 50-51% Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1517,19 +1517,16 @@ namespace {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Value based pruning
|
// Value based pruning
|
||||||
if (approximateEval < beta)
|
if (futilityValue == VALUE_NONE)
|
||||||
|
futilityValue = evaluate(pos, ei, threadID) + FutilityValueMargin;
|
||||||
|
|
||||||
|
futilityValueScaled = futilityValue - moveCount * IncrementalFutilityMargin;
|
||||||
|
|
||||||
|
if (futilityValueScaled < beta)
|
||||||
{
|
{
|
||||||
if (futilityValue == VALUE_NONE)
|
if (futilityValueScaled > bestValue)
|
||||||
futilityValue = evaluate(pos, ei, threadID) + FutilityValueMargin;
|
bestValue = futilityValueScaled;
|
||||||
|
continue;
|
||||||
futilityValueScaled = futilityValue - moveCount * IncrementalFutilityMargin;
|
|
||||||
|
|
||||||
if (futilityValueScaled < beta)
|
|
||||||
{
|
|
||||||
if (futilityValueScaled > bestValue)
|
|
||||||
bestValue = futilityValueScaled;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user