Skip to content

Commit

Permalink
Simplify the condition for doing the full-depth full-window re-search (
Browse files Browse the repository at this point in the history
…TerjeKir#676)

This means a re-search will now also be triggered when the previous searches indicate a fail high.

ELO   | -0.18 +- 1.60 (95%)
SPRT  | 40.0+0.40s Threads=1 Hash=128MB
LLR   | 2.95 (-2.94, 2.94) [-3.00, 0.00]
GAMES | N: 86016 W: 20398 L: 20443 D: 45175

Bench: 22069011
  • Loading branch information
TerjeKir authored Aug 28, 2023
1 parent 6772250 commit 8629234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
score = -AlphaBeta(thread, ss+1, -alpha-1, -alpha, newDepth, !cutnode);

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

// Undo the move
Expand Down

0 comments on commit 8629234

Please sign in to comment.