24 lines
477 B
Python
24 lines
477 B
Python
class Player():
|
|
|
|
def __init__(self, name):
|
|
self.name = name
|
|
self.markList = []
|
|
|
|
def __str__(self):
|
|
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))
|
|
|
|
|
|
def clear_mark_list():
|
|
self.markList = [] |