From 901ad7e7eed1d7166cc5a3b30da78001a5e686a7 Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Sat, 23 Aug 2025 06:29:45 -0700 Subject: [PATCH] Simplify quiet move streak Passed Non-regression STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 46272 W: 12076 L: 11866 D: 22330 Ptnml(0-2): 140, 5407, 11860, 5561, 168 https://tests.stockfishchess.org/tests/view/68a9c26575da51a345a5a6a2 Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 140442 W: 35984 L: 35886 D: 68572 Ptnml(0-2): 72, 15333, 39305, 15447, 64 https://tests.stockfishchess.org/tests/view/68aa245e75da51a345a5a80d closes https://github.com/official-stockfish/Stockfish/pull/6258 Bench: 2931171 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 1396a817d..6a17e1624 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1006,7 +1006,7 @@ moves_loop: // When in check, search starts here movedPiece = pos.moved_piece(move); givesCheck = pos.gives_check(move); - (ss + 1)->quietMoveStreak = (!capture && !givesCheck) ? (ss->quietMoveStreak + 1) : 0; + (ss + 1)->quietMoveStreak = capture ? 0 : (ss->quietMoveStreak + 1); // Calculate new depth for this move newDepth = depth - 1;