1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Simpler formula for ss->cutoffCnt update

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

No functional change
This commit is contained in:
FauziAkram 2024-08-22 18:27:16 +03:00 committed by Joost VandeVondele
parent 54def6f7eb
commit 451044202a

View file

@ -1292,7 +1292,7 @@ moves_loop: // When in check, search starts here
if (value >= beta)
{
ss->cutoffCnt += 1 + !ttData.move - (extension >= 2);
ss->cutoffCnt += !ttData.move + (extension < 2);
assert(value >= beta); // Fail high
break;
}