Skip to content

Commit

Permalink
Bench: 27280913
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 22, 2024
1 parent 7608ca3 commit 27baedb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
ss->doubleExtensions = (ss-1)->doubleExtensions;

const bool pvNode = alpha != beta - 1;
const bool allNode = !(pvNode || cutnode);
const bool root = ss->ply == 0;
const bool inCheck = pos->checkers;

Expand Down Expand Up @@ -551,7 +552,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
r += 2 * cutnode;

// Depth after reductions, avoiding going straight to quiescence as well as extending
Depth lmrDepth = CLAMP(newDepth - r, 1, newDepth);
Depth lmrDepth = CLAMP(newDepth - r, 1, newDepth + allNode);

score = -AlphaBeta(thread, ss+1, -alpha-1, -alpha, lmrDepth, true);

Expand Down

0 comments on commit 27baedb

Please sign in to comment.