Skip to content

Commit d7f5f15

Browse files
Ralph Stößermcostalba
authored andcommitted
Reduce negative quiets by ONE_PLY / 2
Passed both short TC: LLR: 2.96 (-2.94,2.94) [-1.50,4.50] Total: 3402 W: 708 L: 593 D: 2101 And long TC: LLR: 2.93 (-2.94,2.94) [0.00,6.00] Total: 23379 W: 3972 L: 3759 D: 15648 bench: 3529630
1 parent 84906b8 commit d7f5f15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/search.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,11 @@ namespace {
949949
if (!PvNode && cutNode)
950950
ss->reduction += ONE_PLY;
951951

952+
else if (History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
953+
ss->reduction += ONE_PLY / 2;
954+
952955
if (move == countermoves[0] || move == countermoves[1])
953-
ss->reduction = std::max(DEPTH_ZERO, ss->reduction-ONE_PLY);
956+
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
954957

955958
Depth d = std::max(newDepth - ss->reduction, ONE_PLY);
956959
if (SpNode)

0 commit comments

Comments
 (0)