Add get_stats function

This commit is contained in:
Garmelon 2016-02-12 21:11:16 +01:00
parent 55c42425ce
commit e012faa8c6

View file

@ -162,6 +162,15 @@ class Maze:
Save a png image of the maze in path. Save a png image of the maze in path.
""" """
pass pass
def get_stats(self):
"""
-> amount of paths, amount of walls
Count and return the amount of paths and walls in the maze.
NOTE: The outside walls aren't a part of the maze.
"""
pass
if __name__ == "__main__": if __name__ == "__main__":
maze = Maze(*[int(arg) for arg in sys.argv[1:3]]) maze = Maze(*[int(arg) for arg in sys.argv[1:3]])