[explorer, perft, position] Move node count into a new PerftCounters struct

This commit is contained in:
Eryn Wells 2025-06-19 11:33:35 -07:00
parent 4ce7e89cdb
commit 0f5a538f0a
3 changed files with 47 additions and 19 deletions

View file

@ -350,9 +350,9 @@ fn do_perft_command(
.ok_or(CommandHandlingError::MissingArgument("depth"))?;
let mut position = state.position.clone();
let nodes_count = position.perft(depth);
let counters = position.perft(depth);
println!("nodes {nodes_count}");
println!("{counters}");
Ok(CommandResult {
should_continue: true,