mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00: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:
parent
ae0b965711
commit
3f3365221b
1 changed files with 9 additions and 12 deletions
|
@ -1517,8 +1517,6 @@ namespace {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Value based pruning
|
// Value based pruning
|
||||||
if (approximateEval < beta)
|
|
||||||
{
|
|
||||||
if (futilityValue == VALUE_NONE)
|
if (futilityValue == VALUE_NONE)
|
||||||
futilityValue = evaluate(pos, ei, threadID) + FutilityValueMargin;
|
futilityValue = evaluate(pos, ei, threadID) + FutilityValueMargin;
|
||||||
|
|
||||||
|
@ -1531,7 +1529,6 @@ namespace {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Make and search the move
|
// Make and search the move
|
||||||
pos.do_move(move, st, ci, moveIsCheck);
|
pos.do_move(move, st, ci, moveIsCheck);
|
||||||
|
|
Loading…
Add table
Reference in a new issue