fixing the DFS and modify the main

This commit is contained in:
Maoake TERIIEROOITERAI
2026-03-24 20:47:13 +01:00
parent 991cdead51
commit 8eb46f601f
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Generator, Set
import numpy as np
from .Cell import Cell
@@ -107,7 +106,7 @@ class Kruskal(MazeGenerator):
class DepthFirstSearch(MazeGenerator):
def generator(
self, width: int, height: int
self, height: int, width: int
) -> Generator[np.ndarray, None, np.ndarray]:
maze = DepthFirstSearch.init_maze(width, height)
visited = np.zeros((height, width), dtype=bool)