Skip to content

Commit

Permalink
chore: fix the reported nodes and nps counts
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed Jun 5, 2024
1 parent 7f5051a commit bc3a8b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ pub fn search(position: ataxx::Position, limits: Limits, total_nodes: &mut u64)
);
}

*total_nodes += tree.nodes() as u64;

if tree.playouts() & 127 == 0 {
if start.elapsed().as_millis() >= limits.movetime
|| depth >= limits.depth
Expand All @@ -165,6 +163,8 @@ pub fn search(position: ataxx::Position, limits: Limits, total_nodes: &mut u64)
}
}

*total_nodes += tree.nodes() as u64;

println!(
"info depth {} seldepth {} score cp {:.0} nodes {} nps {}",
cumulative_depth / tree.playouts(),
Expand Down

0 comments on commit bc3a8b3

Please sign in to comment.