Skip to content

Commit 8f921a4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 160f5c7 commit 8f921a4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

searches/breadth_first-search_maze.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
["#", " ", "#", " ", "#", " ", "#", " ", "#"],
1919
["#", " ", "#", " ", "#", " ", "#", "#", "#"],
2020
["#", " ", " ", " ", " ", " ", " ", " ", "#"],
21-
["#", "#", "#", "#", "#", "#", "#", "X", "#"]
21+
["#", "#", "#", "#", "#", "#", "#", "X", "#"],
2222
]
2323

2424
# maze: list[list[str]] = [
@@ -44,7 +44,13 @@
4444
# ["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"]
4545
# ]
4646

47-
def print_maze(maze: list[list[str]], stdscr: curses.window, visited: set[tuple[int, int]], path: list[tuple[int, int]] = []) -> None:
47+
48+
def print_maze(
49+
maze: list[list[str]],
50+
stdscr: curses.window,
51+
visited: set[tuple[int, int]],
52+
path: list[tuple[int, int]] = [],
53+
) -> None:
4854
"""
4955
Print the maze with the current path and visited nodes.
5056
"""

0 commit comments

Comments
 (0)