Skip to content

Commit 3183117

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 6dabed8 commit 3183117

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: backtracking/rat_in_maze.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ def run_maze(maze, i, j, solutions):
9797
solutions[i][j] = 1
9898

9999
# check for directions
100-
if (run_maze(maze, i + 1, j, solutions)
100+
if (
101+
run_maze(maze, i + 1, j, solutions)
101102
or run_maze(maze, i, j + 1, solutions)
102103
or run_maze(maze, i - 1, j, solutions)
103-
or run_maze(maze, i, j - 1, solutions)):
104+
or run_maze(maze, i, j - 1, solutions)
105+
):
104106
return True
105107

106108
solutions[i][j] = 0

0 commit comments

Comments
 (0)