Skip to content

Commit

Permalink
Decrease reduction for moves that escape a capture
Browse files Browse the repository at this point in the history
Passed both STC
LLR: 2.96 (-2.94,2.94) [-1.50,4.50]
Total: 10094 W: 1833 L: 1704 D: 6557

and LTC
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 27738 W: 4147 L: 3928 D: 19663

bench : 8599236
  • Loading branch information
R-Peleg authored and mcostalba committed Jun 3, 2014
1 parent f4dcec0 commit 83a574f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/search.cpp
Expand Up @@ -868,6 +868,12 @@ namespace {
if (move == countermoves[0] || move == countermoves[1])
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);

// Decrease reduction for moves that escape a capture
if ( ss->reduction
&& type_of(pos.piece_on(to_sq(move))) != PAWN
&& pos.see_sign(make_move(to_sq(move), from_sq(move))) < 0)
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);

Depth d = std::max(newDepth - ss->reduction, ONE_PLY);
if (SpNode)
alpha = splitPoint->alpha;
Expand Down

0 comments on commit 83a574f

Please sign in to comment.