tic-far-toe/Player.py

13 lines
346 B
Python
Raw Normal View History

2022-07-25 10:35:07 +00:00
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))