Lmr rework #122

Merged
rektdie merged 3 commits from lmr-rework into main 2025-10-26 13:40:04 +01:00
Showing only changes of commit 220e3ba966 - Show all commits
+4 -4
View File
@@ -173,13 +173,13 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int
if (cutnode)
reduction += lmrCutnode;
if (!move.IsCapture()) {
if constexpr (isPV)
if constexpr (isPV)
reduction -= lmrIsPV;
if (!improving)
reduction += lmrImproving;
if (!improving)
reduction += lmrImproving;
if (move.IsQuiet()) {
bool sourceThreatened = board.IsSquareThreatened(board.sideToMove, move.MoveFrom());
bool targetThreatened = board.IsSquareThreatened(board.sideToMove, move.MoveTo());