Merge pull request #86 from rektdie/lmr-conthist

added 1 ply conthist to lmr | bench 25271003
This commit was merged in pull request #86.
This commit is contained in:
rektdie authored and GitHub committed 2025-08-05 12:00:49 +02:00
commit a4c1a87110
1 file changed
+6 -1
+6 -1
View File
@@ -157,7 +157,12 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int
reduction += 2; reduction += 2;
// History LMR // 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; reduction -= historyReduction;
} }