Fixed a syntax error

This commit is contained in:
otomo otonami 2022-08-07 09:23:52 +03:00
parent 8dd2035167
commit 855e53befe

View File

@ -21,7 +21,7 @@ class GameMap:
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
player.add_mark((x,y))
player.add_mark(x,y)
else:
errorMessage = "The mark is already busy by the Player " + str(self.data[(x, y)].get_name())
raise KeyError(errorMessage)