Skip to content

Commit

Permalink
Bench: 22716589
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Jan 26, 2025
1 parent 8048bb9 commit e03c5cb
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 @@ -397,7 +397,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
int probCutBeta = beta + 200;

// ProbCut
if ( depth >= 5
if ( depth >= 3
&& (!ttHit || ttBound == BOUND_LOWER || ttScore >= probCutBeta)) {

InitProbcutMP(&mp, thread, ss, probCutBeta - ss->staticEval);
Expand All @@ -418,7 +418,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
int score = -Quiescence(thread, ss+1, -probCutBeta, -probCutBeta+1);

// If it did, do a proper search with reduced depth
if (score >= probCutBeta)
if (score >= probCutBeta && depth - 4 > 0)
score = -AlphaBeta(thread, ss+1, -probCutBeta, -probCutBeta+1, depth-4, !cutnode);

TakeMove(pos);
Expand Down

0 comments on commit e03c5cb

Please sign in to comment.