Skip to content

Commit

Permalink
Bench: 21963671
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Nov 18, 2023
1 parent 4be6daf commit 737edda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
int ttScore = ttHit ? ScoreFromTT(tte->score, ss->ply) : NOSCORE;
int ttEval = ttHit ? tte->eval : NOSCORE;
Depth ttDepth = tte->depth;
int ttBound = ttHit ? Bound(tte) : BOUND_NONE;
int ttBound = Bound(tte);

if (ttMove && (!MoveIsPseudoLegal(pos, ttMove) || ttMove == ss->excluded))
ttHit = false, ttMove = NOMOVE, ttScore = NOSCORE, ttEval = NOSCORE, ttBound = BOUND_NONE;
ttHit = false, ttMove = NOMOVE, ttScore = NOSCORE, ttEval = NOSCORE;

// Trust TT if not a pvnode and the entry depth is sufficiently high
if (!pvNode && ttHit && ttDepth >= depth && TTScoreIsMoreInformative(ttBound, ttScore, beta)) {
Expand Down

0 comments on commit 737edda

Please sign in to comment.