Merge pull request #108 from rektdie/2ply-lmr-conthist

extended conthist in lmr | bench 5829415
This commit was merged in pull request #108.
This commit is contained in:
rektdie authored and GitHub committed 2025-09-15 07:27:33 +02:00
commit ca51e59dd9
1 file changed
+5 -1
+5 -1
View File
@@ -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;