Skip to content

Commit

Permalink
Bench: 26520741
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 11, 2024
1 parent 84213b4 commit 2f54b33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,12 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
TakeMove(pos);

// Cut if the reduced depth search beats the threshold, terminal scores are exact
if (score >= probCutBeta)
if (score >= probCutBeta) {

StoreTTEntry(tte, pos->key, move, ScoreToTT(score, ss->ply), unadjustedEval, depth-3, BOUND_LOWER);

return score < TBWIN_IN_MAX ? score - 160 : score;
}
}
}

Expand Down

0 comments on commit 2f54b33

Please sign in to comment.