Skip to content

Commit d6613b7

Browse files
uriblassglinscott
authored andcommitted
Change history reduction in LMR to be a full ply.
STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 9829 W: 2142 L: 1998 D: 5689 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 27162 W: 4802 L: 4692 D: 17668 Bench: 7284120 Resolves #53
1 parent fed3e75 commit d6613b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/search.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,12 +823,10 @@ namespace {
823823
{
824824
ss->reduction = reduction<PvNode>(improving, depth, moveCount);
825825

826-
if (!PvNode && cutNode)
826+
if ( (!PvNode && cutNode)
827+
|| History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
827828
ss->reduction += ONE_PLY;
828829

829-
else if (History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
830-
ss->reduction += ONE_PLY / 2;
831-
832830
if (move == countermoves[0] || move == countermoves[1])
833831
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
834832

0 commit comments

Comments
 (0)