Skip to content

Commit

Permalink
Take 3. Bench: 5087719
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Dec 10, 2017
1 parent 196ae7c commit b997974
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.cpp
Expand Up @@ -689,6 +689,9 @@ 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)
return ss->staticEval - 2 * Eval::Tempo;

ss->currentMove = MOVE_NULL;
ss->contHistory = &thisThread->contHistory[NO_PIECE][0];

Expand Down

0 comments on commit b997974

Please sign in to comment.