Skip to content

Commit

Permalink
Bench: 26879122
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 30, 2023
1 parent b24afdd commit 64e8585
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 @@ -107,7 +107,8 @@ static int Quiescence(Thread *thread, Stack *ss, int alpha, const int beta) {
: ttEval != NOSCORE ? ttEval
: EvalPosition(pos, thread->pawnCache);

eval += *CorrEntry();
if (eval <= 10000)
eval += *CorrEntry();

// If we are at max depth, return static eval
if (ss->ply >= MAX_PLY)
Expand Down Expand Up @@ -297,7 +298,8 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
if (ttScore != NOSCORE && TTScoreIsMoreInformative(ttBound, ttScore, eval))
eval = ttScore;

eval += *CorrEntry();
if (eval <= 10000)
eval += *CorrEntry();

// Improving if not in check, and current eval is higher than 2 plies ago
bool improving = !inCheck && eval > (ss-2)->staticEval;
Expand Down

0 comments on commit 64e8585

Please sign in to comment.