Пример #1
0
 def report_board_finished(self, board):
     worker.execute(self._report_board_finished, board)
Пример #2
0
    def report_board_started(self, board, player1, player2):
        rating1 = self.get_rating(player1)
        rating2 = self.get_rating(player2)

        worker.execute(self._report_board_started, board, player1, rating1,
                       player2, rating2)
Пример #3
0
 def report_move(self, board):
     worker.execute(self._report_move, board, board.moves[-1])
Пример #4
0
 def report_win(self, winner, looser, board):
     worker.execute(self._report_win, winner, looser, board)
Пример #5
0
 def report_invalid_move(self, player, x, y, board):
     worker.execute(self._report_invalid_move, player, x, y, board)
Пример #6
0
 def room_ends(self, room):
     worker.execute(self._room_ends, room)
Пример #7
0
 def find_opponent_for(self, player):
     worker.execute(self._find_opponent_for, player)
Пример #8
0
 def register_player(self, player):
     worker.execute(self._register_player, player)