From 5bd44bfd489b580b8c950702d509c5e3f563b537 Mon Sep 17 00:00:00 2001 From: rektdie Date: Tue, 5 Aug 2025 03:07:30 +0200 Subject: [PATCH] added 1 ply conthist to lmr | bench 25271003 --- source/search.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 963cff4..3f768c9 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -157,7 +157,12 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int reduction += 2; // History LMR - int historyReduction = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()] / 8192; + int historyReduction = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()]; + + if (ply > 0) + historyReduction += ctx->conthist.GetOnePly(board, move, ctx, ply); + + historyReduction /= 8192; reduction -= historyReduction; } -- 2.47.3