From b87c69bd17cda3f1b3359bcb9924a556cebb9bf3 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Mon, 12 Dec 2022 12:10:52 -0500 Subject: [PATCH] comment --- 2022/python/day12.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/2022/python/day12.py b/2022/python/day12.py index f60eab0..4309b0c 100644 --- a/2022/python/day12.py +++ b/2022/python/day12.py @@ -56,11 +56,10 @@ def part2(mx): path = find_path(graph, start, end) paths.append(path) except algorithm.NoPathError: - #print('x', end='') # This 'a' is in a puddle of 'c's, so it's not pathable pass shortest = min(paths, key= lambda x: x.total_cost) - matrix.apply_to_all(mx, lambda x: chr(x+ord('a'))) + matrix.apply_to_all(mx, lambda x: chr(x+ord('a'))) # Back to letters, single char prettier matrix.highlight(mx, red=shortest.nodes) print(shortest.total_cost)