extended conthist in lmr | bench 5829415 #108
+5
-1
@@ -171,9 +171,13 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int
|
|||||||
|
|
||||||
// History LMR
|
// History LMR
|
||||||
int historyReduction = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()];
|
int historyReduction = ctx->history[board.sideToMove][move.MoveFrom()][move.MoveTo()];
|
||||||
if (ply > 0)
|
if (ply > 0) {
|
||||||
historyReduction += ctx->conthist.GetOnePly(board, move, ctx, ply);
|
historyReduction += ctx->conthist.GetOnePly(board, move, ctx, ply);
|
||||||
|
|
||||||
|
if (ply > 1)
|
||||||
|
historyReduction += ctx->conthist.GetTwoPly(board, move, ctx, ply);
|
||||||
|
}
|
||||||
|
|
||||||
reduction /= 1024;
|
reduction /= 1024;
|
||||||
|
|
||||||
historyReduction = historyReduction / lmrHistoryDivisor;
|
historyReduction = historyReduction / lmrHistoryDivisor;
|
||||||
|
|||||||
Reference in new issue
Block a user