diff --git a/GameMap.py b/GameMap.py index b439505..0cdf3d3 100644 --- a/GameMap.py +++ b/GameMap.py @@ -21,6 +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)) else: errorMessage = "The mark is already busy by the Player" + self.data[(x, y)].get_name() raise KeyError(errorMessage)