From 89a71c175f6ab17032eb638adb00f036c472ca5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sat, 17 Dec 2022 12:27:05 +0100 Subject: [PATCH] Day 17. --- 2022/day17.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2022/day17.py b/2022/day17.py index 32e1c38..7fc07d3 100644 --- a/2022/day17.py +++ b/2022/day17.py @@ -130,14 +130,14 @@ tower, *_ = build_tower(2022, line) answer_1 = tower_hight(tower) print(f"answer 1 is {answer_1}") -total_rocks = 1_000_000_000_000 -tower_1, n_rocks_1, (i_rocks_1, i_jet_1), prev_1 = build_tower(total_rocks, line, True) +TOTAL_ROCKS = 1_000_000_000_000 +tower_1, n_rocks_1, (i_rocks_1, i_jet_1), prev_1 = build_tower(TOTAL_ROCKS, line, True) # shift the line line = line[i_jet_1:] + line[:i_jet_1] # remaining rocks -remaining_rocks = total_rocks - n_rocks_1 +remaining_rocks = TOTAL_ROCKS - n_rocks_1 n_repeat_rocks = n_rocks_1 - prev_1 # repeated tower