more changes to lmr | bench 4738833

This commit is contained in:
rektdie committed 2025-10-26 13:31:37 +01:00
1 parent 48b40ec9ff
commit 220e3ba966
1 file changed
+1 -1
+1 -1
View File
@@ -173,13 +173,13 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int
if (cutnode) if (cutnode)
reduction += lmrCutnode; reduction += lmrCutnode;
if (!move.IsCapture()) {
if constexpr (isPV) if constexpr (isPV)
reduction -= lmrIsPV; reduction -= lmrIsPV;
if (!improving) if (!improving)
reduction += lmrImproving; reduction += lmrImproving;
if (move.IsQuiet()) {
bool sourceThreatened = board.IsSquareThreatened(board.sideToMove, move.MoveFrom()); bool sourceThreatened = board.IsSquareThreatened(board.sideToMove, move.MoveFrom());
bool targetThreatened = board.IsSquareThreatened(board.sideToMove, move.MoveTo()); bool targetThreatened = board.IsSquareThreatened(board.sideToMove, move.MoveTo());