Skip to content

Commit

Permalink
Bench: 28673747
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Jan 31, 2025
1 parent 693b322 commit 4584de9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,13 @@ 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 || moveCount == 1))
if (pvNode && (score > alpha || moveCount == 1)) {

if (move == ttMove && thread->depth > 10)
newDepth = MAX(newDepth, 1);

score = -AlphaBeta(thread, ss+1, -beta, -alpha, newDepth, false);
}

// Undo the move
TakeMove(pos);
Expand Down

0 comments on commit 4584de9

Please sign in to comment.