]> git.sesse.net Git - stockfish/commitdiff
Change depth - 1 to newDepth
authorFauziAkram <fauzi.dabat@hotmail.com>
Mon, 20 Nov 2023 17:56:34 +0000 (18:56 +0100)
committerDisservin <disservin.social@gmail.com>
Mon, 20 Nov 2023 17:59:01 +0000 (18:59 +0100)
Replacing 'depth - 1' with 'newDepth' in the singularbeta formula
utilizes existing variables more succinctly.

closes https://github.com/official-stockfish/Stockfish/pull/4876

No functional change

src/search.cpp

index fa479c4b8272b9896081c0f07c7da86e06a15797..7d567b8ab71058d9b6c78b2424142da9f568ec16 100644 (file)
@@ -1045,7 +1045,7 @@ moves_loop:  // When in check, search starts here
                 && tte->depth() >= depth - 3)
             {
                 Value singularBeta  = ttValue - (64 + 57 * (ss->ttPv && !PvNode)) * depth / 64;
-                Depth singularDepth = (depth - 1) / 2;
+                Depth singularDepth = newDepth / 2;
 
                 ss->excludedMove = move;
                 value =