Explained some stuff

This commit is contained in:
otomo otonami 2022-08-07 09:24:05 +03:00
parent 855e53befe
commit bc3d3b59c9

View File

@ -18,6 +18,8 @@ class GameMap:
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, y) not in self.data:
self.data[(x,y)] = player