Skip to content

Commit

Permalink
History pruning
Browse files Browse the repository at this point in the history
Prune moves with negative History
and CMH scores at low depth.

STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 24182 W: 4672 L: 4439 D: 15071

LTC:
LLR: 2.97 (-2.94,2.94) [0.00,5.00]
Total: 12579 W: 1959 L: 1792 D: 8828

bench: 8907701
  • Loading branch information
VoyagerOne authored and mcostalba committed Oct 24, 2015
1 parent 5066e17 commit 4eca981
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/search.cpp
Expand Up @@ -894,6 +894,13 @@ namespace {
&& moveCount >= FutilityMoveCounts[improving][depth])
continue;

// History Score Pruning
if ( depth <= 3 * ONE_PLY
&& thisThread->History[pos.moved_piece(move)][to_sq(move)] < VALUE_ZERO
&& CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq]
[pos.moved_piece(move)][to_sq(move)] < VALUE_ZERO)
continue;

predictedDepth = newDepth - reduction<PvNode>(improving, depth, moveCount);

// Futility pruning: parent node
Expand Down

0 comments on commit 4eca981

Please sign in to comment.