Skip to content

Commit 836154a

Browse files
Vizvezdenecvondele
authored andcommitted
Introduce pre-qsearch ttmove extensions at pv nodes
The idea is that we are about to dive into qsearch (next search depth is <= 0) but since we have the move in transposition table we should extend that move and evaluate it with more precise search - because branch seems important. Passed STC: https://tests.stockfishchess.org/tests/view/6699d2564ff211be9d4ec488 LLR: 2.93 (-2.94,2.94) <0.00,2.00> Total: 83104 W: 21789 L: 21401 D: 39914 Ptnml(0-2): 293, 9748, 21128, 10044, 339 Passed LTC: https://tests.stockfishchess.org/tests/view/669b3f1a4ff211be9d4ec602 LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 136098 W: 34636 L: 34111 D: 67351 Ptnml(0-2): 105, 14882, 37550, 15407, 105 closes #5512 bench 1526129
1 parent 985b9fd commit 836154a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/search.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,10 @@ Value Search::Worker::search(
12061206
(ss + 1)->pv = pv;
12071207
(ss + 1)->pv[0] = Move::none();
12081208

1209+
// Extend move from transposition table if we are about to dive into qsearch.
1210+
if (move == ttData.move && ss->ply <= thisThread->rootDepth * 2)
1211+
newDepth = std::max(newDepth, 1);
1212+
12091213
value = -search<PV>(pos, ss + 1, -beta, -alpha, newDepth, false);
12101214
}
12111215

0 commit comments

Comments
 (0)