Skip to content

Commit

Permalink
Updated examples/file_io.rs for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
bkushigian committed Oct 7, 2024
1 parent 68083a8 commit f61782d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/file_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ fn main() {

println!("Reloading from Flop Save and Resolving...");
let flop_solve_start = time::Instant::now();
println!("Using copy_reload_and_resolve: this results in a new game");
let game3 =
PostFlopGame::copy_reload_and_resolve(&game2, 100, target_exploitability, true).unwrap();

Expand All @@ -132,7 +133,14 @@ fn main() {
}
}

println!();
println!("Using reload_and_resolve: this overwrites the existing game");
let flop_solve_start = time::Instant::now();
let _ = PostFlopGame::reload_and_resolve(&mut game2, 1000, target_exploitability, true);
println!(
"\nFlop solve: {} seconds",
flop_solve_start.elapsed().as_secs()
);

// delete the file
std::fs::remove_file(file_save_name).unwrap();
Expand Down

0 comments on commit f61782d

Please sign in to comment.