tic-far-toe/Player.py

16 lines
345 B
Python
Raw Normal View History

2022-07-25 10:35:07 +00:00
class Player():
def __init__(self, name):
2022-07-25 10:35:07 +00:00
self.name = name
self.markList = []
def __str__(self):
return "Player " + self.name + ': ' + "\n " + str(self.markList)
2022-07-25 10:35:07 +00:00
2022-07-25 14:47:19 +00:00
def get_name(self):
return self.name
2022-07-25 10:35:07 +00:00
def record_mark(self, x, y):
self.markList.append((x, y))