Skip to content

Commit

Permalink
Simpler formula for ss->cutoffCnt update
Browse files Browse the repository at this point in the history
closes official-stockfish#5548

No functional change
  • Loading branch information
FauziAkram authored and vondele committed Aug 28, 2024
1 parent 54def6f commit 4510442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ Value Search::Worker::search(

if (value >= beta)
{
ss->cutoffCnt += 1 + !ttData.move - (extension >= 2);
ss->cutoffCnt += !ttData.move + (extension < 2);
assert(value >= beta); // Fail high
break;
}
Expand Down

0 comments on commit 4510442

Please sign in to comment.