Exemple #1
0
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
Exemple #2
0
 def run(self):
     print "running.."
     self.game = Game(self)
     self.game.run()
     return self.game