implement staging api

This commit is contained in:
2026-07-07 18:44:50 -07:00
parent a511679a47
commit 8c64583c00
5 changed files with 65 additions and 56 deletions
+3 -1
View File
@@ -21,7 +21,9 @@ fn play_to_win(rng: &mut Rng) -> Option<KlondikeStats> {
return None;
}
game.process_instruction(&mut stats, &CONFIG, instruction);
game.stage_instruction(&mut stats, &CONFIG, instruction)
.unwrap()
.commit();
}
game.is_win().then_some(stats)
}