mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
set up the function draw ft
This commit is contained in:
@@ -216,3 +216,11 @@ class DepthFirstSearch(MazeGenerator):
|
|||||||
for dx in range(x, x + 11):
|
for dx in range(x, x + 11):
|
||||||
visited[dy, dx] = True
|
visited[dy, dx] = True
|
||||||
return visited
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user