Added an IndexError message

This commit is contained in:
RomulAugustus 2022-07-25 11:00:19 +03:00
parent 63abd8813f
commit a639b67972

View File

@ -21,7 +21,7 @@ class GameMap:
if x <= max_size_x or y <= max_size_y: if x <= max_size_x or y <= max_size_y:
self.data[(x,y)] = player self.data[(x,y)] = player
else: else:
raise IndexError() raise IndexError("Mark added beyond preset max values (max_x - " + self.max_size_x + ", max_y - " + self.max_size_y + ".")
def equal(what, to): def equal(what, to):