Ejemplo n.º 1
0
 def report_board_finished(self, board):
     worker.execute(self._report_board_finished, board)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def report_move(self, board):
     worker.execute(self._report_move, board, board.moves[-1])
Ejemplo n.º 4
0
 def report_win(self, winner, looser, board):
     worker.execute(self._report_win, winner, looser, board)
Ejemplo n.º 5
0
 def report_invalid_move(self, player, x, y, board):
     worker.execute(self._report_invalid_move, player, x, y, board)
Ejemplo n.º 6
0
 def room_ends(self, room):
     worker.execute(self._room_ends, room)
Ejemplo n.º 7
0
 def find_opponent_for(self, player):
     worker.execute(self._find_opponent_for, player)
Ejemplo n.º 8
0
 def register_player(self, player):
     worker.execute(self._register_player, player)