made it remember its marks

This commit is contained in:
otomo otonami 2022-08-07 09:26:57 +03:00
parent 468237429e
commit e8236a7e4a

View File

@ -8,9 +8,17 @@ class Player():
return "Player " + self.name + ': ' + "\n " + str(self.markList) return "Player " + self.name + ': ' + "\n " + str(self.markList)
def get_markList(self):
return self.markList
def get_name(self): def get_name(self):
return self.name return self.name
def add_mark(self, x, y): def add_mark(self, x, y):
self.markList.append((x, y)) self.markList.append((x, y))
def clear_mark_list():
self.markList = []