reworked lmr condition | bench 1189490
This commit is contained in:
1 parent
64981dad3e
commit
081d54dc55
1 file changed
+1
-3
+1
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user