added lmrdepth to fp | bench 5012961

This commit is contained in:
rektdie committed 2025-10-29 00:05:08 +01:00
1 parent b3472092e2
commit c6f2c3cacb
1 file changed
+2 -1
+2 -1
View File
@@ -542,6 +542,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
continue;
bool notMated = results.score > (-MATE_SCORE + MAX_PLY);
int lmrDepth = depth - lmrTable[currMove.IsQuiet()][depth][moveSeen];
// Late move pruning
// If we are near a leaf node we prune moves
@@ -573,7 +574,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
int margin = fpMargin * (depth + improving) + historyScore / 32;
if (!isPV && ply && currMove.IsQuiet()
&& depth <= 5 && staticEval + margin < alpha && notMated) {
&& lmrDepth <= 5 && staticEval + margin < alpha && notMated) {
continue;
}