From 0cb4ba1a2957df39ca1cc1b940f539b9871c77d5 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 14 Sep 2025 21:28:15 +0200 Subject: [PATCH] extended conthist in lmr | bench 5829415 --- source/search.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index cd8602b..5157394 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -171,9 +171,13 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int // History LMR int historyReduction = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()]; - if (ply > 0) + if (ply > 0) { historyReduction += ctx->conthist.GetOnePly(board, move, ctx, ply); + if (ply > 1) + historyReduction += ctx->conthist.GetTwoPly(board, move, ctx, ply); + } + reduction /= 1024; historyReduction = historyReduction / lmrHistoryDivisor; -- 2.47.3