From 13274803310fc0fa4a345d7b7fa4e8ce9f56d0d6 Mon Sep 17 00:00:00 2001 From: oto Date: Mon, 25 Jul 2022 18:47:17 +0300 Subject: [PATCH] returned the call that adds marks to players --- GameMap.py | 1 + 1 file changed, 1 insertion(+) 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)