diff --git a/maze.py b/maze.py index bbff89e..942fcbb 100644 --- a/maze.py +++ b/maze.py @@ -25,6 +25,11 @@ class Maze(abc.ABC): def step(self) -> bool: # returns False when algorithm is done pass + def run(self, i=1_000_000) -> bool: + for _ in range(i): + if not self.step(): return True + return False + def secondary(self, index: tuple[int,int]) -> bool: return False