Skip to content

Commit 2022222

Browse files
committed
Day 16, formatting
1 parent 9b10709 commit 2022222

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

solutions/day16.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,15 @@ def find_routes(self, data: List[str]) -> List[Tuple[List[Tuple[int, int]], int]
108108
and grid[new_y][new_x] != "#"
109109
and (new_y, new_x) not in history
110110
):
111-
112111
if new_dir == curr_dir:
113112
# Moving forward
114113
queue.append(
115-
((new_y, new_x), history + [(new_y, new_x)], curr_score + 1, new_dir)
114+
(
115+
(new_y, new_x),
116+
history + [(new_y, new_x)],
117+
curr_score + 1,
118+
new_dir,
119+
)
116120
)
117121
else:
118122
# Turning (stay in same position)

0 commit comments

Comments
 (0)