Skip to content

Commit

Permalink
Bench: 22974995
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 21, 2024
1 parent c554b7d commit 7a8e1c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ static int Quiescence(Thread *thread, Stack *ss, int alpha, int beta) {
: EvalPosition(pos, thread->pawnCache);

unadjustedEval = eval;
eval = CorrectEval(thread, ss, eval, pos->rule50);
if (moveIsCapture(ttMove))
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))
Expand Down Expand Up @@ -341,7 +342,8 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
: EvalPosition(pos, thread->pawnCache);

int unadjustedEval = eval;
ss->staticEval = eval = CorrectEval(thread, ss, eval, pos->rule50);
if (moveIsCapture(ttMove))
ss->staticEval = 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))
Expand Down

0 comments on commit 7a8e1c8

Please sign in to comment.