tic-far-toe/Player.py
2022-07-25 16:53:56 +03:00

12 lines
286 B
Python

class Player():
def __init__(self, name):
self.name = name
self.markList = []
def __str__(self):
return "Player " + self.name + ': ' + "\n " + str(self.markList)
def record_mark(self, x, y):
self.markList.append((x, y))