MERGE WITH PREV COMMIT

This commit is contained in:
RomulAugustus 2022-07-25 17:49:49 +03:00
parent a465c966a7
commit 25930cc7fb

View File

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