Skip to content

Commit

Permalink
Add extension condition to cutoffCnt
Browse files Browse the repository at this point in the history
Decrease cutoffCnt increment by 1 if extension is 2 or greater.

Passed STC:
https://tests.stockfishchess.org/tests/view/66577a696b0e318cefa8d34d
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 99200 W: 25703 L: 25297 D: 48200
Ptnml(0-2): 253, 11660, 25390, 12022, 275

Passed LTC:
https://tests.stockfishchess.org/tests/view/665787ab6b0e318cefa8d411
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 124530 W: 31659 L: 31161 D: 61710
Ptnml(0-2): 58, 13578, 34489, 14088, 52

closes official-stockfish/Stockfish#5310

bench 1623228
  • Loading branch information
Viren6 authored and vondele committed May 30, 2024
1 parent a4ea183 commit a77a895
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 @@ -1289,7 +1289,7 @@ Value Search::Worker::search(

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

0 comments on commit a77a895

Please sign in to comment.