implement staging api
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ let mut session = Session::new_default(game);
|
||||
|
||||
// play game a bit
|
||||
while let Some(instruction) = session.state().state().get_auto_move(&config) {
|
||||
session.process_instruction(instruction);
|
||||
session.stage_instruction(instruction).unwrap().commit();
|
||||
|
||||
// quit after 200 moves or win
|
||||
if session.is_win() || 200 < session.stats().stats().moves() {
|
||||
|
||||
Reference in New Issue
Block a user