def __init__(self, game_filename):
signal(SIGPIPE, SIG_DFL)
self.game_loaded_properly = True
# Verify that specified game file exists, else limit functionality
if game_filename == None or not os.path.exists('textplayer/games/' + game_filename):
self.game_loaded_properly = False
print "Unrecognized game file or bad path"
return
self.game_filename = game_filename
self.game_log = game_filename + '_log.txt'
self.debug = False
# Runs the game
评论列表
文章目录