Skip to content

Commit

Permalink
Bench: 26587524
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 20, 2024
1 parent 1401211 commit 87d56d9
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 @@ -579,9 +579,10 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth
if (rm->move == move)
break;

rm->nodes += pos->nodes - startingNodes;

if (moveCount == 1 || score > alpha) {
rm->score = score;
rm->nodes += pos->nodes - startingNodes;
rm->pv.length = 1 + (ss+1)->pv.length;
rm->pv.line[0] = move;
memcpy(rm->pv.line+1, (ss+1)->pv.line, sizeof(Move) * (ss+1)->pv.length);
Expand Down

0 comments on commit 87d56d9

Please sign in to comment.