13 lines
346 B
Python
13 lines
346 B
Python
class Player():
|
|
|
|
def __init__(self, name, color):
|
|
self.name = name
|
|
self.color = color
|
|
self.markList = []
|
|
|
|
def __str__(self):
|
|
return "Player " + self.name + ': ' + "Color - " + self.color + "\n " + str(self.markList)
|
|
|
|
|
|
def record_mark(self, x, y):
|
|
self.markList.append((x, y)) |