Skip to content

Commit 83a574f

Browse files
R-Pelegmcostalba
authored andcommitted
Decrease reduction for moves that escape a capture
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
1 parent f4dcec0 commit 83a574f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/search.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,12 @@ namespace {
868868
if (move == countermoves[0] || move == countermoves[1])
869869
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
870870

871+
// Decrease reduction for moves that escape a capture
872+
if ( ss->reduction
873+
&& type_of(pos.piece_on(to_sq(move))) != PAWN
874+
&& pos.see_sign(make_move(to_sq(move), from_sq(move))) < 0)
875+
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
876+
871877
Depth d = std::max(newDepth - ss->reduction, ONE_PLY);
872878
if (SpNode)
873879
alpha = splitPoint->alpha;

0 commit comments

Comments
 (0)