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
+1 -1
View File
@@ -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() {