[explorer, perft, position] Move node count into a new PerftCounters struct
This commit is contained in:
parent
4ce7e89cdb
commit
0f5a538f0a
3 changed files with 47 additions and 19 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue