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)))