Skip to content

Commit

Permalink
Simplify away capthist bonus in Probcut
Browse files Browse the repository at this point in the history
The explicit bonus has been obsoleted with the introduction of #5695

Passed Non-regression STC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 132832 W: 34519 L: 34403 D: 63910
Ptnml(0-2): 430, 15754, 33931, 15872, 429
https://tests.stockfishchess.org/tests/view/678158c49168c8bf30927834

Passed Non-regression LTC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 123492 W: 31426 L: 31309 D: 60757
Ptnml(0-2): 79, 13705, 34051, 13842, 69
https://tests.stockfishchess.org/tests/view/6782b07e6ddf09c0b4b6dbb7

closes #5761

Bench: 1180439
  • Loading branch information
xu-shawn authored and Disservin committed Jan 12, 2025
1 parent 8d517bd commit 9213618
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ Value Search::Worker::search(
assert(probCutBeta < VALUE_INFINITE && probCutBeta > beta);

MovePicker mp(pos, ttData.move, probCutBeta - ss->staticEval, &thisThread->captureHistory);
Piece captured;

while ((move = mp.next_move()) != Move::none())
{
Expand All @@ -875,10 +874,6 @@ Value Search::Worker::search(

assert(pos.capture_stage(move));

movedPiece = pos.moved_piece(move);
captured = pos.piece_on(move.to_sq());


// Prefetch the TT entry for the resulting position
prefetch(tt.first_entry(pos.key_after(move)));

Expand All @@ -903,8 +898,6 @@ Value Search::Worker::search(

if (value >= probCutBeta)
{
thisThread->captureHistory[movedPiece][move.to_sq()][type_of(captured)] << 1226;

// Save ProbCut data into transposition table
ttWriter.write(posKey, value_to_tt(value, ss->ply), ss->ttPv, BOUND_LOWER,
depth - 3, move, unadjustedStaticEval, tt.generation());
Expand Down

0 comments on commit 9213618

Please sign in to comment.