fixed conditions for adding player marks

This commit is contained in:
RomulAugustus 2022-07-25 16:53:34 +03:00
parent 7377f74d92
commit db23a056ec

View File

@ -18,7 +18,7 @@ class GameMap:
def add_player_mark(self, x, y, player):
if x <= self.max_size_x and y <= self.max_size_y:
if (x <= self.max_size_x and y <= self.max_size_y) and (x >= 0 and y >= 0):
self.data[(x,y)] = player
player.record_mark(x, y)
else: