Skip to content

Commit

Permalink
Fix node counts for root moves (#753)
Browse files Browse the repository at this point in the history
Impacts the time management tweak that was added alongside this, but seems more or less neutral and tuning will surely fix it at a later point even if it is a loss right now.

Elo   | -0.58 +- 1.83 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=32MB
LLR   | 0.68 (-2.94, 2.94) [-3.00, 0.00]
Games | N: 51172 W: 13920 L: 14006 D: 23246
Penta | [854, 6055, 11836, 6005, 836]
http://chess.grantnet.us/test/38611/

Bench: 26587524
  • Loading branch information
TerjeKir authored Dec 21, 2024
1 parent 1401211 commit 3adc2e2
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 3adc2e2

Please sign in to comment.