import random class Player: def __init__(self, token, name): self.token = token self.name = name def choose_random_field(self, empty_fields): return random.choice(empty_fields)