serde impl (#16)

Closes #15

Reviewed-on: #16
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
This commit was merged in pull request #16.
This commit is contained in:
2026-06-09 17:15:24 +00:00
committed by Quaternions
parent ccfcfd6ad3
commit d67645854a
11 changed files with 437 additions and 19 deletions
-3
View File
@@ -4,9 +4,6 @@ use klondike::{
KlondikePile, KlondikePileStack, SkipCards, Tableau, TableauStack,
};
#[cfg(test)]
mod test;
use std::fmt::Display;
struct Displayed<T>(T);
-16
View File
@@ -1,16 +0,0 @@
use card_game::Session;
use klondike::Klondike;
#[test]
fn test_is_winnable() {
// is winnable
let solution_result = Session::new_default(Klondike::with_seed(124)).solve();
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());
// }
println!("Game is winnable with {} moves", win_moves.len());
} else {
println!("Game is not winnable");
}
}