From: Michael Chaly Date: Fri, 21 Oct 2022 14:10:45 +0000 (+0300) Subject: Use TT moves more often in qsearch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=4ec8945eafc5b271d1c9d276fab590fa26c24901 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 --- 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)); }