From 12c6bd8022957f72676788d9901d9b17620245e6 Mon Sep 17 00:00:00 2001 From: RomulAugustus <87079566+RomulAugustus@users.noreply.github.com> Date: Mon, 25 Jul 2022 17:50:07 +0300 Subject: [PATCH] Added a method to remove marks --- GameMap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GameMap.py b/GameMap.py index ec7c442..155522d 100644 --- a/GameMap.py +++ b/GameMap.py @@ -28,6 +28,10 @@ class GameMap: 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 remove_mark(self, x, y): + data.pop((x,y)) + def clear_map(self): self.data = {} \ No newline at end of file