Skip to content

Commit

Permalink
Simpler formula for ss->cutoffCnt update
Browse files Browse the repository at this point in the history
No functional change
  • Loading branch information
FauziAkram authored and PikaCat-OuO committed Aug 31, 2024
1 parent 3192cfa commit 5415290
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 @@ -1203,7 +1203,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 5415290

Please sign in to comment.