Tic-Tac-Toe/Player.py

10 lines
184 B
Python

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