Added a run maze generator function

This commit is contained in:
Kyler Olsen 2024-11-07 23:13:38 -07:00
parent 870d541d96
commit 4b2b06a929
1 changed files with 5 additions and 0 deletions

View File

@ -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