From 9045f17c3f19a7b779e4baf71689ddd650f5d64c Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Fri, 14 Mar 2025 02:21:48 -0700 Subject: [PATCH] Simplify captures PCM Passed Non-regression STC: LLR: 2.92 (-2.94,2.94) <-1.75,0.25> Total: 229856 W: 59258 L: 59252 D: 111346 Ptnml(0-2): 746, 27330, 58714, 27448, 690 https://tests.stockfishchess.org/tests/view/67d3fdac517865b4a2dfcef4 Passed Non-regression LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 107652 W: 27470 L: 27338 D: 52844 Ptnml(0-2): 56, 11646, 30280, 11798, 46 https://tests.stockfishchess.org/tests/view/67d5f972517865b4a2dfd2ec closes https://github.com/official-stockfish/Stockfish/pull/5931 Bench: 1842520 --- src/search.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 3eab34be4..4b6ad52e4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1442,7 +1442,7 @@ moves_loop: // When in check, search starts here update_all_stats(pos, ss, *this, bestMove, prevSq, quietsSearched, capturesSearched, depth, bestMove == ttData.move, moveCount); - // Bonus for prior countermove that caused the fail low + // Bonus for prior quiet countermove that caused the fail low else if (!priorCapture && prevSq != SQ_NONE) { int bonusScale = (112 * (depth > 5) + 34 * !allNode + 164 * ((ss - 1)->moveCount > 8) @@ -1466,13 +1466,12 @@ moves_loop: // When in check, search starts here << scaledBonus * 1055 / 32768; } + // Bonus for prior capture countermove that caused the fail low else if (priorCapture && prevSq != SQ_NONE) { - // bonus for prior countermoves that caused the fail low Piece capturedPiece = pos.captured_piece(); assert(capturedPiece != NO_PIECE); - thisThread->captureHistory[pos.piece_on(prevSq)][prevSq][type_of(capturedPiece)] - << std::min(300 * depth - 182, 2995); + thisThread->captureHistory[pos.piece_on(prevSq)][prevSq][type_of(capturedPiece)] << 1100; } if (PvNode)