From f61782ded3fe4c93284771919dd418897746524a Mon Sep 17 00:00:00 2001 From: bkushigian Date: Mon, 7 Oct 2024 12:20:31 -0700 Subject: [PATCH] Updated examples/file_io.rs for clarity --- examples/file_io.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/file_io.rs b/examples/file_io.rs index c072a9f..35868b3 100644 --- a/examples/file_io.rs +++ b/examples/file_io.rs @@ -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(); @@ -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();