class Main(object): # Handle exiting actions def quit(self): print "terminating.." sys.exit() # Restart the game def restart(self): print "restarting.." self.run() def run(self): print "running.." self.game = Game(self) self.game.run() return self.game def get_game(self): return self.game
def run(self): print "running.." self.game = Game(self) self.game.run() return self.game