diff --git a/Player.py b/Player.py index 959c133..7cdf7d4 100644 --- a/Player.py +++ b/Player.py @@ -1,8 +1,9 @@ class Player(): - def __init__(self, name): + def __init__(self, name, personalScore=0): self.name = name self.markList = [] + self.personalScore = personalScore def __str__(self): return "Player " + self.name + ': ' + "\n " + str(self.markList) @@ -18,7 +19,7 @@ class Player(): def add_mark(self, x, y): self.markList.append((x, y)) - + self.personalScore += 10 def clear_mark_list(): self.markList = [] \ No newline at end of file