Exemple #1
0
    def startGame(self):
        db = self.app.layoutDatabase
        game = LocalGame(db, SIZE[0], SIZE[1], onceOnly=True)

        for i in range(AICOUNT):
            game.addBot('ranger')

        self.onStart.execute(game)
Exemple #2
0
    def practiseClicked(self):
        db = self.app.layoutDatabase

        SIZE = (3, 1)
        AICOUNT = 5

        game = LocalGame(db, SIZE[0], SIZE[1], onceOnly=True)

        for i in range(AICOUNT):
            game.addBot('ranger')

        self.app.connector.openGameObject(game)