diff --git a/erynrl/map/__init__.py b/erynrl/map/__init__.py index 2002545..a47a75e 100644 --- a/erynrl/map/__init__.py +++ b/erynrl/map/__init__.py @@ -103,3 +103,12 @@ class Map: condlist=[self.highlighted, self.visible, self.explored], choicelist=[self.tiles['highlighted'], self.tiles['light'], self.tiles['dark']], default=Shroud) + + def __str__(self): + string = '' + + tiles = self.tiles['light']['ch'] + for row in tiles: + string += ''.join(chr(n) for n in row) + '\n' + + return string