Skip to content

Commit

Permalink
Introduce pre-qsearch ttmove extensions at pv nodes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vizvezdenec authored and PikaCat-OuO committed Jul 24, 2024
1 parent 9fc38ba commit 7f62ac8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,10 @@ Value Search::Worker::search(
(ss + 1)->pv = pv;
(ss + 1)->pv[0] = Move::none();

// Extend move from transposition table if we are about to dive into qsearch.
if (move == ttData.move && ss->ply <= thisThread->rootDepth * 2)
newDepth = std::max(newDepth, 1);

value = -search<PV>(pos, ss + 1, -beta, -alpha, newDepth, false);
}

Expand Down

0 comments on commit 7f62ac8

Please sign in to comment.