Explained some stuff
This commit is contained in:
parent
855e53befe
commit
bc3d3b59c9
@ -18,6 +18,8 @@ class GameMap:
|
|||||||
|
|
||||||
|
|
||||||
def add_mark(self, x, y, player):
|
def add_mark(self, x, y, player):
|
||||||
|
# Can be 0 or can be a max value, so,
|
||||||
|
# this is border-inclusive.
|
||||||
if (x <= self.max_size_x and y <= self.max_size_y) and (x >= 0 and y >= 0):
|
if (x <= self.max_size_x and y <= self.max_size_y) and (x >= 0 and y >= 0):
|
||||||
if (x, y) not in self.data:
|
if (x, y) not in self.data:
|
||||||
self.data[(x,y)] = player
|
self.data[(x,y)] = player
|
||||||
|
Loading…
Reference in New Issue
Block a user