Exemplo n.º 1
0
 def local_game(self):
     game = core.Game()
     p_1 = LocalPlayer()
     p_2 = LocalPlayer()
     game.add_player(p_1)
     game.add_player(p_2)
     game.random_beginner()
     w1 = GameWindow(p_1)
     w2 = GameWindow(p_2)
     
     w1.show()
     w2.show()
     
     self.windows.append(w1)
     self.windows.append(w2)
Exemplo n.º 2
0
 def show_game(self, game):
     g = GameWindow(game)
     g.show()