Skip to content

Commit

Permalink
Removes evasionPrunable
Browse files Browse the repository at this point in the history
STC:
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 25656 W: 4979 L: 4826 D: 15851
Ptnml(0-2): 414, 2971, 5964, 3006, 473
https://tests.stockfishchess.org/tests/view/5e93dbd72cb65b3059c33819

LTC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 43732 W: 5656 L: 5593 D: 32483
Ptnml(0-2): 324, 4072, 13009, 4139, 322
https://tests.stockfishchess.org/tests/view/5e93e37c2cb65b3059c33825

closes official-stockfish#2627

Bench: 4702195
  • Loading branch information
silversolver1 authored and vondele committed Apr 13, 2020
1 parent db59696 commit de9fc53
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ namespace {
Move ttMove, move, bestMove;
Depth ttDepth;
Value bestValue, value, ttValue, futilityValue, futilityBase, oldAlpha;
bool ttHit, pvHit, inCheck, givesCheck, captureOrPromotion, evasionPrunable;
bool ttHit, pvHit, inCheck, givesCheck, captureOrPromotion;
int moveCount;

if (PvNode)
Expand Down Expand Up @@ -1527,14 +1527,8 @@ namespace {
}
}

// Detect non-capture evasions that are candidates to be pruned
evasionPrunable = inCheck
&& (depth != 0 || moveCount > 2)
&& bestValue > VALUE_TB_LOSS_IN_MAX_PLY
&& !pos.capture(move);

// Don't search moves with negative SEE values
if ( (!inCheck || evasionPrunable) && !pos.see_ge(move))
if ( !inCheck && !pos.see_ge(move))
continue;

// Speculative prefetch as early as possible
Expand Down

0 comments on commit de9fc53

Please sign in to comment.