1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00: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:
FauziAkram 2023-11-20 18:56:34 +01:00 committed by Disservin
parent 7970236e9e
commit 504bf0e8b8

View 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 =