Add get_stats function

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

View file

@ -163,6 +163,15 @@ class Maze:
""" """
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]])
maze.generate(*[int(arg) for arg in sys.argv[3:7]]) maze.generate(*[int(arg) for arg in sys.argv[3:7]])