Skip to content

Commit

Permalink
Bench: 25107463
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 7, 2024
1 parent 938d494 commit 0d43a66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ static int Quiescence(Thread *thread, Stack *ss, int alpha, const int beta) {
int unadjustedEval = eval;
eval = CorrectEval(thread, ss, eval, pos->rule50);

// Use ttScore as eval if it is more informative
if (abs(ttScore) < TBWIN_IN_MAX && TTScoreIsMoreInformative(ttBound, ttScore, eval))
eval = ttScore;

// If we are at max depth, return static eval
if (ss->ply >= MAX_PLY)
return eval;
Expand Down

0 comments on commit 0d43a66

Please sign in to comment.