reworked lmr condition | bench 1189490

This commit is contained in:
rektdie committed 2026-03-28 03:20:07 +01:00
1 parent 64981dad3e
commit 081d54dc55
1 file changed
+1 -3
+1 -3
View File
@@ -98,7 +98,6 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int
int reduction = 0;
// Late Move Reduction
if (depth >= 2 && moveSeen >= 2 + (2 * isPV)) {
reduction = lmrTable[move.IsQuiet()][depth][moveSeen] * 1024;
if (cutnode)
@@ -146,7 +145,6 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int
historyReduction = historyReduction / lmrHistoryDivisor;
reduction -= historyReduction * 1024;
}
reduction /= 1024;
@@ -668,7 +666,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
U64 nodesBeforeSearch = ctx->nodes;
if (reductions > 0) {
if (depth >= 2 && moveSeen >= 2 + (2 * isPV)) {
score = -PVS<false, mode>(copy, reduced, -alpha - 1, -alpha, ply + 1, ctx, true).score;
if (score > alpha && reduced < newDepth) {