finish the maze generator

This commit is contained in:
Maoake Teriierooiterai
2026-03-24 11:10:16 +01:00
parent 030c6142ba
commit 8b4ef7afce
3 changed files with 31 additions and 26 deletions
+14 -7
View File
@@ -1,11 +1,18 @@
import numpy
from amaz_lib.MazeGenerator import Kruskal
from amaz_lib.MazeGenerator import DepthFirstSearch
def test_kruskal_output_shape() -> None:
generator = Kruskal()
maze = numpy.array([])
for output in generator.generator(10, 10):
maze = output
class TestMazeGenerator:
assert maze.shape == (10, 10)
# def test_kruskal_output_shape() -> None:
# generator = Kruskal()
# maze = numpy.array([])
# for output in generator.generator(10, 10):
# maze = output
# assert maze.shape == (10, 10)
def test_generator(self):
maze = numpy.array([])
maze = DepthFirstSearch.generator(10, 10)
assert maze.shape == (10, 10)