From 4ec8945eafc5b271d1c9d276fab590fa26c24901 Mon Sep 17 00:00:00 2001 From: Michael Chaly Date: Fri, 21 Oct 2022 17:10:45 +0300 Subject: [PATCH] Use TT moves more often in qsearch During the recapture phase of quiescence search (where we limit the generated moves to recaptures on the last seen capture square), the move picker will now emit the tt move, even if the tt move is not a recapture. Passed STC : https://tests.stockfishchess.org/tests/view/6350df2928d3a71cb1eef838 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 90280 W: 24001 L: 23845 D: 42434 Ptnml(0-2): 273, 9779, 24941, 9813, 334 Passed LTC : https://tests.stockfishchess.org/tests/view/6351308b28d3a71cb1ef06ce LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 104504 W: 27937 L: 27807 D: 48760 Ptnml(0-2): 54, 10378, 31260, 10504, 56 closes https://github.com/official-stockfish/Stockfish/pull/4206 Bench: 4540268 --- src/movepick.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index 3428a764..587c6d79 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -83,7 +83,6 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const ButterflyHist stage = (pos.checkers() ? EVASION_TT : QSEARCH_TT) + !( ttm - && (pos.checkers() || depth > DEPTH_QS_RECAPTURES || to_sq(ttm) == recaptureSquare) && pos.pseudo_legal(ttm)); } -- 2.39.2