new_random_default

This commit is contained in:
2026-05-15 08:55:58 -07:00
parent 78a5b9cc3d
commit f18e8b9b1a
4 changed files with 5 additions and 6 deletions
+3
View File
@@ -164,6 +164,9 @@ pub struct Klondike {
state: KlondikeState,
}
impl Klondike {
pub fn new_random_default() -> Self {
Self::new(Rng::default(), KlondikeConfig::default())
}
pub fn new(mut seed: Rng, config: KlondikeConfig) -> Self {
// shuffle a new deck
let mut deck = Stack::full_deck(0);