Skip to content

Commit 4880ed4

Browse files
xu-shawnvondele
authored andcommitted
Simplify Probcut Malus
Passed Non-regression STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 74880 W: 19261 L: 19083 D: 36536 Ptnml(0-2): 202, 8861, 19120, 9071, 186 https://tests.stockfishchess.org/tests/view/668a0966eca84f4d25864cba Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 263916 W: 66690 L: 66718 D: 130508 Ptnml(0-2): 125, 29348, 73040, 29320, 125 https://tests.stockfishchess.org/tests/view/668a17e3eca84f4d25864e91 closes #5464 bench 1331408
1 parent acd0a93 commit 4880ed4

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/search.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,6 @@ Value Search::Worker::search(
861861
assert(probCutBeta < VALUE_INFINITE && probCutBeta > beta);
862862

863863
MovePicker mp(pos, ttData.move, probCutBeta - ss->staticEval, &thisThread->captureHistory);
864-
Move probcutCapturesSearched[32];
865-
int probcutCaptureCount = 0;
866864
Piece captured;
867865

868866
while ((move = mp.next_move()) != Move::none())
@@ -900,25 +898,12 @@ Value Search::Worker::search(
900898
thisThread->captureHistory[movedPiece][move.to_sq()][type_of(captured)]
901899
<< stat_bonus(depth - 2);
902900

903-
for (int i = 0; i < probcutCaptureCount; i++)
904-
{
905-
movedPiece = pos.moved_piece(probcutCapturesSearched[i]);
906-
captured = pos.piece_on(probcutCapturesSearched[i].to_sq());
907-
908-
thisThread->captureHistory[movedPiece][probcutCapturesSearched[i].to_sq()]
909-
[type_of(captured)]
910-
<< -stat_malus(depth - 3);
911-
}
912-
913901
// Save ProbCut data into transposition table
914902
ttWriter.write(posKey, value_to_tt(value, ss->ply), ss->ttPv, BOUND_LOWER,
915903
depth - 3, move, unadjustedStaticEval, tt.generation());
916904
return std::abs(value) < VALUE_TB_WIN_IN_MAX_PLY ? value - (probCutBeta - beta)
917905
: value;
918906
}
919-
920-
if (probcutCaptureCount < 32)
921-
probcutCapturesSearched[probcutCaptureCount++] = move;
922907
}
923908

924909
Eval::NNUE::hint_common_parent_position(pos, networks[numaAccessToken], refreshTable);

0 commit comments

Comments
 (0)