Skip to content

Commit

Permalink
Take 4. Bench: 4871056
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Dec 10, 2017
1 parent b997974 commit 36f7361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -689,7 +689,7 @@ namespace {
// Null move dynamic reduction based on depth and value
Depth R = ((823 + 67 * depth / ONE_PLY) / 256 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY;

if (!ttHit && depth - R < ONE_PLY && ss->staticEval - 2 * Eval::Tempo >= beta)
if (depth - R < ONE_PLY && ss->staticEval - 2 * Eval::Tempo >= beta && (!ttHit || tte->depth() <= depth / ONE_PLY ))
return ss->staticEval - 2 * Eval::Tempo;

ss->currentMove = MOVE_NULL;
Expand Down

0 comments on commit 36f7361

Please sign in to comment.