1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Futility pruning till ply 6 included

Seems good:

After 796 games: +211 = 393 -192 +8 elo

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-12-24 09:34:09 +01:00
parent d11426c777
commit 2feb9d5100

View file

@ -1314,12 +1314,14 @@ namespace {
continue; continue;
// Value based pruning // Value based pruning
if (depth < 6 * OnePly && approximateEval < beta) if (depth < 7 * OnePly && approximateEval < beta)
{ {
if (futilityValue == VALUE_NONE) if (futilityValue == VALUE_NONE)
futilityValue = evaluate(pos, ei, threadID) futilityValue = evaluate(pos, ei, threadID)
+ (depth < 2 * OnePly ? FutilityMargin1 + (depth < 2 * OnePly ? FutilityMargin1 :
: FutilityMargin2 + (depth - 2*OnePly) * 32); + (depth < 6 * OnePly ? FutilityMargin2 + (depth - 2*OnePly) * 32
: FutilityMargin2 + (depth - 2*OnePly) * 64));
if (futilityValue < beta) if (futilityValue < beta)
{ {
if (futilityValue > bestValue) if (futilityValue > bestValue)