fix(parsing): make output work for AMazeIng class __init__

Basic main to display ascii print
This commit is contained in:
2026-03-25 17:40:13 +01:00
parent e717bf52e9
commit a408004bd7
21 changed files with 1872 additions and 65 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import math
class MazeGenerator(ABC):
@abstractmethod
def generator(
self, height: int, width: int, seed: int = None
self, height: int, width: int, seed: int | None = None
) -> Generator[np.ndarray, None, np.ndarray]: ...
@staticmethod
@@ -113,7 +113,7 @@ class Kruskal(MazeGenerator):
return s1 in cells_ft or s2 in cells_ft
def generator(
self, height: int, width: int, seed: int = None
self, height: int, width: int, seed: int | None = None
) -> Generator[np.ndarray, None, np.ndarray]:
cells_ft = None
if height > 10 and width > 10: