4 from plomrogue.game import Game
7 print('wrong number of arguments, expected one (game file)')
9 game_file_name = sys.argv[1]
10 game = Game(game_file_name)
11 if os.path.exists(game_file_name):
12 if not os.path.isfile(game_file_name):
13 print('game file name does not refer to a valid game file')
15 with open(game_file_name, 'r') as f:
17 for i in range(len(lines)):
19 print("FILE INPUT LINE %5s: %s" % (i, line), end='')
20 game.io.handle_input(line, store=False)
22 game.io.handle_input('GEN_WORLD Y:16,X:16 bar')
23 game.io.run_loop_with_server()