Added a method to remove marks

This commit is contained in:
RomulAugustus 2022-07-25 17:50:07 +03:00
parent 25930cc7fb
commit 12c6bd8022

View File

@ -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) 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) raise IndexError(errorMessage)
def remove_mark(self, x, y):
data.pop((x,y))
def clear_map(self): def clear_map(self):
self.data = {} self.data = {}