added brackets to the player name

This commit is contained in:
otomo otonami 2022-08-07 09:24:27 +03:00
parent bc3d3b59c9
commit 344f2e2909

View File

@ -25,7 +25,7 @@ class GameMap:
self.data[(x,y)] = player
player.add_mark(x,y)
else:
errorMessage = "The mark is already busy by the Player " + str(self.data[(x, y)].get_name())
errorMessage = "The mark is already busy by the player '" + str(self.data[(x, y)].get_name()) + "'"
raise KeyError(errorMessage)
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)