Added an IndexError message
This commit is contained in:
parent
63abd8813f
commit
a639b67972
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user