]> git.sesse.net Git - stockfish/commitdiff
Use TT moves more often in qsearch
authorMichael Chaly <Vizvezdenec@gmail.com>
Fri, 21 Oct 2022 14:10:45 +0000 (17:10 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 23 Oct 2022 18:22:04 +0000 (20:22 +0200)
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

index 3428a764f1ad3116d765828a50a4e9a522e16804..587c6d79c0e0188b1df0ac740d335b449401b7f1 100644 (file)
@@ -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));
 }