tic-far-toe/Player.py
2022-07-25 13:35:07 +03:00

13 lines
346 B
Python

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