made the base
This commit is contained in:
parent
e7f1733a8a
commit
7377f74d92
13
Player.py
13
Player.py
@ -0,0 +1,13 @@
|
||||
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))
|
Loading…
Reference in New Issue
Block a user