def wait_for_turn(self):
    "\n        Wait for this player's turn.\n        "
    while True:
        time.sleep(0.5)
        if (self.controller is not None):
            events = self.controller.get_events(self.id)
            for event in events:
                self.handle_event(event)
        if (self.game_state.turn_id == self.id):
            break
Wait for this player's turn.
def wait_for_turn(self):
    "\n        \n        "
    while True:
        time.sleep(0.5)
        if (self.controller is not None):
            events = self.controller.get_events(self.id)
            for event in events:
                self.handle_event(event)
        if (self.game_state.turn_id == self.id):
            break