From 3d61f932cbdbcca8f4a5f20459e706cfa2415648 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Sat, 29 Mar 2025 15:34:48 -0400 Subject: [PATCH] Squash out post-lmr bonus variable Squash out bonus variable for post-lmr now that the bonus is constant. closes https://github.com/official-stockfish/Stockfish/pull/5953 No functional change --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 10e5047f1..7a1a36100 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1271,8 +1271,7 @@ moves_loop: // When in check, search starts here value = -search(pos, ss + 1, -(alpha + 1), -alpha, newDepth, !cutNode); // Post LMR continuation history updates - int bonus = 1600; - update_continuation_histories(ss, movedPiece, move.to_sq(), bonus); + update_continuation_histories(ss, movedPiece, move.to_sq(), 1600); } else if (value > alpha && value < bestValue + 9) newDepth--;