Skip to content

Commit

Permalink
Bench: 9311225
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Oct 19, 2023
1 parent 2efd0f4 commit 8b59a2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,17 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
}

// Full depth zero-window search
else if (!pvNode || moveCount > 1)
else if (!pvNode || moveCount > 1) {
score = -AlphaBeta(thread, ss+1, -alpha-1, -alpha, newDepth, !cutnode);

if (quiet && (score <= alpha || score >= beta)) {
int bonus = score >= beta ? Bonus(depth)
: -Bonus(depth);

UpdateContHistories(ss, move, bonus);
}
}

// Full depth alpha-beta window search
if (pvNode && (score > alpha || moveCount == 1))
score = -AlphaBeta(thread, ss+1, -beta, -alpha, newDepth, false);
Expand Down

0 comments on commit 8b59a2d

Please sign in to comment.