Пример #1
0
 def new_match(self, player1, player2):
     media.fade_music(1000)
     gamestate.new_game(player1, player2)
     self.manager.switch_scene('main')
     return True
Пример #2
0
 def new_game(self):
     gamestate.new_game(gamestate.players.red, gamestate.players.yellow)
     # if the first player is a computer, make its move
     if gamestate.players.player_type() == gamestate.COMPUTER:
         self.drop_tile(gamestate.players.computer_move())