diff --git a/day19.py b/day19.py index 3b3ed73..039f65f 100644 --- a/day19.py +++ b/day19.py @@ -38,7 +38,7 @@ class Day(AOCDay): start = Coordinate(x, 0) last_pos = Coordinate(0, 0) last_dir = Coordinate(0, 1) - neighbours = maze.getNeighboursOf(start, includeDiagonal=False) + ['None'] + neighbours = maze.getNeighboursOf(start, includeDiagonal=False) + [Coordinate(0, 0)] while len(neighbours) > 1: step_count += 1 if maze.get(start + last_dir):