update readme
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ let mut session = Session::new_default(game);
|
|||||||
while let Some(instruction) = session.state().get_auto_move() {
|
while let Some(instruction) = session.state().get_auto_move() {
|
||||||
session.process_instruction(instruction);
|
session.process_instruction(instruction);
|
||||||
|
|
||||||
// quit after 1000 moves
|
// quit after 200 moves or win
|
||||||
if 1000 < session.stats().stats().moves() {
|
if session.is_win() || 200 < session.stats().stats().moves() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user