mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 18:17:02 +08:00
Change depth - 1 to newDepth
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
This commit is contained in:
@@ -1045,7 +1045,7 @@ moves_loop: // When in check, search starts here
|
|||||||
&& tte->depth() >= depth - 3)
|
&& tte->depth() >= depth - 3)
|
||||||
{
|
{
|
||||||
Value singularBeta = ttValue - (64 + 57 * (ss->ttPv && !PvNode)) * depth / 64;
|
Value singularBeta = ttValue - (64 + 57 * (ss->ttPv && !PvNode)) * depth / 64;
|
||||||
Depth singularDepth = (depth - 1) / 2;
|
Depth singularDepth = newDepth / 2;
|
||||||
|
|
||||||
ss->excludedMove = move;
|
ss->excludedMove = move;
|
||||||
value =
|
value =
|
||||||
|
|||||||
Reference in New Issue
Block a user