Skip to content

Commit

Permalink
tviigg.
Browse files Browse the repository at this point in the history
bench 3572749
  • Loading branch information
Vizvezdenec committed Jul 10, 2019
1 parent ca51d1e commit 03d4bb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search.cpp
Expand Up @@ -831,8 +831,8 @@ namespace {
// Step 10. ProbCut (~10 Elo)
// If we have a good enough capture and a reduced search returns a value
// much above beta, we can (almost) safely prune the previous move.
if ( !PvNode
&& depth >= 5 * ONE_PLY
if ( !rootNode
&& depth >= (5 + 3 * PvNode) * ONE_PLY
&& abs(beta) < VALUE_MATE_IN_MAX_PLY)
{
Value raisedBeta = std::min(beta + 216 - 48 * improving, VALUE_INFINITE);
Expand All @@ -848,7 +848,7 @@ namespace {
ss->currentMove = move;
ss->continuationHistory = &thisThread->continuationHistory[pos.moved_piece(move)][to_sq(move)];

assert(depth >= 5 * ONE_PLY);
assert(depth >= (5 + 3 * PvNode) * ONE_PLY);

pos.do_move(move, st);

Expand All @@ -857,7 +857,7 @@ namespace {

// If the qsearch held, perform the regular search
if (value >= raisedBeta)
value = -search<NonPV>(pos, ss+1, -raisedBeta, -raisedBeta+1, depth - 4 * ONE_PLY, !cutNode);
value = -search<NonPV>(pos, ss+1, -raisedBeta, -raisedBeta+1, depth - (4 + 3 * PvNode) * ONE_PLY, !cutNode);

pos.undo_move(move);

Expand Down

0 comments on commit 03d4bb7

Please sign in to comment.