Skip to content

Commit 67d0616

Browse files
BM123499snicolet
authored andcommitted
Simplify probCutCount away
Simplify away the limitation in number of moves in probCut. STC: LLR: 2.96 (-2.94,2.94) <-2.50,0.50> Total: 286768 W: 71888 L: 72133 D: 142747 Ptnml(0-2): 983, 33084, 75471, 32887, 959 https://tests.stockfishchess.org/tests/view/616c9b9b90e1312a3cd0ef0a LTC: LLR: 2.95 (-2.94,2.94) <-2.50,0.50> Total: 69312 W: 17243 L: 17176 D: 34893 Ptnml(0-2): 42, 7452, 19614, 7493, 55 https://tests.stockfishchess.org/tests/view/616cebbf4f95b438f7a85f93 closes #3745 bench: 5005810
1 parent f749496 commit 67d0616

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/search.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -893,19 +893,16 @@ namespace {
893893
assert(probCutBeta < VALUE_INFINITE);
894894

895895
MovePicker mp(pos, ttMove, probCutBeta - ss->staticEval, &captureHistory);
896-
int probCutCount = 0;
897896
bool ttPv = ss->ttPv;
898897
ss->ttPv = false;
899898

900-
while ( (move = mp.next_move()) != MOVE_NONE
901-
&& probCutCount < 2 + 2 * cutNode)
899+
while ((move = mp.next_move()) != MOVE_NONE)
902900
if (move != excludedMove && pos.legal(move))
903901
{
904902
assert(pos.capture_or_promotion(move));
905903
assert(depth >= 5);
906904

907905
captureOrPromotion = true;
908-
probCutCount++;
909906

910907
ss->currentMove = move;
911908
ss->continuationHistory = &thisThread->continuationHistory[ss->inCheck]

0 commit comments

Comments
 (0)