From a32d984e0c2961b6425d30e6f322191ef6014376 Mon Sep 17 00:00:00 2001 From: RomulAugustus <87079566+RomulAugustus@users.noreply.github.com> Date: Mon, 25 Jul 2022 17:10:43 +0300 Subject: [PATCH] removed an unnecessary call (moved to gameLogic) also removed a bunch of spaces --- GameMap.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GameMap.py b/GameMap.py index 3c8ea47..3ef0d3d 100644 --- a/GameMap.py +++ b/GameMap.py @@ -20,13 +20,10 @@ class GameMap: def add_player_mark(self, x, y, player): if (x <= self.max_size_x and y <= self.max_size_y) and (x >= 0 and y >= 0): self.data[(x,y)] = player - player.record_mark(x, y) else: errorMessage = "The mark" + str((x,y)) + " is beyond preset max values, max_x - " + str(self.max_size_x) + ", max_y - " + str(self.max_size_y) raise IndexError(errorMessage) def clear_map(self): - self.data = {} - - \ No newline at end of file + self.data = {} \ No newline at end of file