From 008bab9cf71bb2343421e97b8da9e913b211fb81 Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sat, 3 Dec 2022 13:11:07 +0100 Subject: [PATCH] day19 --- day19.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):