From a39f348b1e8365f55d4cf177d920b17f8e3488ee Mon Sep 17 00:00:00 2001 From: Maoake TERIIEROOITERAI Date: Tue, 24 Mar 2026 22:11:54 +0100 Subject: [PATCH] set up the function draw ft --- src/amaz_lib/MazeGenerator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/amaz_lib/MazeGenerator.py b/src/amaz_lib/MazeGenerator.py index 56f546d..623078e 100644 --- a/src/amaz_lib/MazeGenerator.py +++ b/src/amaz_lib/MazeGenerator.py @@ -216,3 +216,11 @@ class DepthFirstSearch(MazeGenerator): for dx in range(x, x + 11): visited[dy, dx] = True return visited + + @staticmethod + def draw_ft(maze: np.ndarray, coord: tuple): + x, y = coord + for dy in range(y, y + 7): + for dx in range(x, x + 11): + maze[dy][dx] = Cell(value=0) + return maze