Conthist #79

Merged
rektdie merged 13 commits from conthist into main 2025-07-20 13:06:45 +02:00
Showing only changes of commit 20c636a3b4 - Show all commits
+3 -2
View File
@@ -404,9 +404,10 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
// If we are near a leaf node we prune moves // If we are near a leaf node we prune moves
// that are late in the list // that are late in the list
if (!isPV && !board.InCheck() && currMove.IsQuiet() && notMated) { if (!isPV && !board.InCheck() && currMove.IsQuiet() && notMated) {
int lmpBase = 7; int lmpBase = 4;
int lmpThreshold = lmpBase + 4 * depth; int lmpMultiplier = 3;
int lmpThreshold = (lmpBase + lmpMultiplier * (depth - 1) * (depth - 1));
if (moveSeen >= lmpThreshold) { if (moveSeen >= lmpThreshold) {
continue; continue;