add MoveFromFoundationConfig

This commit is contained in:
2026-05-29 11:57:16 -07:00
parent 035875c893
commit ffd25079a9
5 changed files with 47 additions and 17 deletions
+3 -2
View File
@@ -7,14 +7,15 @@ Klondike
```rust
use card_game::Session;
use klondike::Klondike;
use klondike::{Klondike, KlondikeConfig};
// create game session
let game = Klondike::with_seed(123);
let config = KlondikeConfig::default();
let mut session = Session::new_default(game);
// play game a bit
while let Some(instruction) = session.state().get_auto_move() {
while let Some(instruction) = session.state().get_auto_move(&config) {
session.process_instruction(instruction);
// quit after 200 moves or win