From 1121918434087c3653a7471e2650713474ac9b9f Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Sat, 12 Dec 2020 11:24:11 +0100 Subject: [PATCH] Day 12 (removed comments) --- day12/part1.py | 2 -- day12/part2.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/day12/part1.py b/day12/part1.py index 367e5e3..c656839 100644 --- a/day12/part1.py +++ b/day12/part1.py @@ -24,13 +24,11 @@ def rotate(current, amount): for line in lines: - print(line) if line[0] in target_str: pos += direction(line[0]) * line[1] elif line[0] in "LR": drctn = rotate(drctn, -line[1] if line[0] == "R" else line[1]) else: pos += drctn * line[1] - print(pos, drctn) print(sum(np.abs(pos))) diff --git a/day12/part2.py b/day12/part2.py index e680f9d..d150eca 100644 --- a/day12/part2.py +++ b/day12/part2.py @@ -24,13 +24,11 @@ def rotate(current, amount): for line in lines: - print(line) if line[0] in target_str: drctn += direction(line[0]) * line[1] elif line[0] in "LR": drctn = rotate(drctn, -line[1] if line[0] == "R" else line[1]) else: pos += drctn * line[1] - print(pos, drctn) print(sum(np.abs(pos)))