From e8236a7e4a30b6643fdd0609fb25d9a92f716823 Mon Sep 17 00:00:00 2001 From: oto Date: Sun, 7 Aug 2022 09:26:57 +0300 Subject: [PATCH] made it remember its marks --- Player.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Player.py b/Player.py index dc970e6..959c133 100644 --- a/Player.py +++ b/Player.py @@ -8,9 +8,17 @@ class Player(): return "Player " + self.name + ': ' + "\n " + str(self.markList) + def get_markList(self): + return self.markList + + def get_name(self): return self.name def add_mark(self, x, y): - self.markList.append((x, y)) \ No newline at end of file + self.markList.append((x, y)) + + + def clear_mark_list(): + self.markList = [] \ No newline at end of file