From 921361829a1c09d289e973a507652ec7be9dc796 Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Fri, 10 Jan 2025 09:11:31 -0800 Subject: [PATCH] Simplify away capthist bonus in Probcut 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 https://github.com/official-stockfish/Stockfish/pull/5761 Bench: 1180439 --- src/search.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 61425acdcbe..47e7f4bc383 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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()) { @@ -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))); @@ -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());