1 # Monsterz - Chains of Friends
3 # 2010-2014 (c) Jean Privat <jean@pryen.org>
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the Do What The Fuck You Want To
7 # Public License, Version 2, as published by Sam Hocevar. See
8 # http://sam.zoy.org/projects/COPYING.WTFPL for more details.
10 # Solver of levels on the command-line
18 print
"Usage: solver_cmd levelnumber"
21 var l
= args
.first
.to_i
25 g
.load
(game
.levels
[l
].str
)
28 var p
= new FriendzProblem(g
)
31 var r
= s
.run_steps
(500000)
35 else if s
.is_running
then