Add get_stats function
This commit is contained in:
parent
55c42425ce
commit
e012faa8c6
1 changed files with 9 additions and 0 deletions
9
maze.py
9
maze.py
|
|
@ -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]])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue