From 855e53befeb3680b8e32b7692905a05b27b1c787 Mon Sep 17 00:00:00 2001 From: oto Date: Sun, 7 Aug 2022 09:23:52 +0300 Subject: [PATCH] Fixed a syntax error --- GameMap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameMap.py b/GameMap.py index a100ef9..3b494b8 100644 --- a/GameMap.py +++ b/GameMap.py @@ -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)