Fixed a syntax error
This commit is contained in:
parent
8dd2035167
commit
855e53befe
@ -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 <= 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
|
||||||
player.add_mark((x,y))
|
player.add_mark(x,y)
|
||||||
else:
|
else:
|
||||||
errorMessage = "The mark is already busy by the Player " + str(self.data[(x, y)].get_name())
|
errorMessage = "The mark is already busy by the Player " + str(self.data[(x, y)].get_name())
|
||||||
raise KeyError(errorMessage)
|
raise KeyError(errorMessage)
|
||||||
|
Loading…
Reference in New Issue
Block a user