clean solution

This commit is contained in:
2026-05-29 14:22:34 -07:00
parent 9f6514367d
commit e3870112cf
2 changed files with 48 additions and 3 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ use klondike::Klondike;
fn test_is_winnable() {
// is winnable
let solution_result = Session::new_default(Klondike::with_seed(124)).solve();
if let Ok(Some(win_moves)) = solution_result {
if let Ok(Some(solution)) = solution_result {
let win_moves = solution.clean_solution();
// for (i, ins) in win_moves.into_iter().enumerate() {
// println!("{i} = {:?}", ins.instruction());
// }