Commits

Shlomi Fish  committed e611bee

Was able to dump the game as YAML.

  • Participants
  • Parent commits 5a3335f

Comments (0)

Files changed (1)

File fc-solve/source/scripts/handle_pysolfc_savedgame.py

 from cStringIO import StringIO
 import argparse
 from pysollib.mygettext import _, n_
+import yaml
 
 from pysollib.init import init
 # PySol imports
     results = parser.parse_args()
 
     g = Game()
-    g._loadGame(results.input_filename)
+    loaded_game = g._loadGame(results.input_filename)
+    print yaml.dump(loaded_game)
 
 if __name__ == "__main__":
     main()