Skip to content

Commit

Permalink
Futility pruning till ply 6 included
Browse files Browse the repository at this point in the history
Seems good:

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

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information
mcostalba committed Dec 24, 2008
1 parent d11426c commit 2feb9d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/search.cpp
Expand Up @@ -1314,12 +1314,14 @@ namespace {
continue;

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

if (futilityValue < beta)
{
if (futilityValue > bestValue)
Expand Down

0 comments on commit 2feb9d5

Please sign in to comment.