From 7f94fcfba0bdc8fa6f8972a13dbf124c2ee33e9a Mon Sep 17 00:00:00 2001 From: trwnh Date: Sat, 12 Dec 2020 01:12:44 -0600 Subject: [PATCH] ehh --- 2020/12/12.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2020/12/12.py b/2020/12/12.py index 7376e83..704982b 100644 --- a/2020/12/12.py +++ b/2020/12/12.py @@ -119,14 +119,14 @@ def navigate2(instructions): wx, wy = -wx, -wy elif value == 270: wx, wy = -wy, wx - return x, y + return x, y, wx, wy def part1(instructions): x, y, direction = navigate(instructions) return abs(x) + abs(y) def part2(instructions): - x, y = navigate2(instructions) + x, y, wx, wy = navigate2(instructions) return abs(x) + abs(y) def main():