diff --git a/src/holt59/aoc/2015/day19.py b/src/holt59/aoc/2015/day19.py index 6bcfb41..d631dae 100644 --- a/src/holt59/aoc/2015/day19.py +++ b/src/holt59/aoc/2015/day19.py @@ -52,7 +52,6 @@ class Solver(BaseSolver): m2 += molecule[i] i += 1 - # print(m2) molecule = m2 yield count diff --git a/src/holt59/aoc/2022/day17.py b/src/holt59/aoc/2022/day17.py index 4d22d78..668147d 100644 --- a/src/holt59/aoc/2022/day17.py +++ b/src/holt59/aoc/2022/day17.py @@ -10,17 +10,6 @@ T = TypeVar("T") Tower: TypeAlias = NDArray[np.bool] -def print_tower(tower: Tower, out: str = "#"): - print("-" * (tower.shape[1] + 2)) - non_empty = False - for row in reversed(range(1, tower.shape[0])): - if not non_empty and not tower[row, :].any(): - continue - non_empty = True - print("|" + "".join(out if c else "." for c in tower[row, :]) + "|") - print("+" + "-" * tower.shape[1] + "+") - - def tower_height(tower: Tower) -> int: return int(tower.shape[0] - tower[::-1, :].argmax(axis=0).min() - 1) diff --git a/src/holt59/aoc/2022/day23.py b/src/holt59/aoc/2022/day23.py index 0695dd9..f72865e 100644 --- a/src/holt59/aoc/2022/day23.py +++ b/src/holt59/aoc/2022/day23.py @@ -24,18 +24,6 @@ def min_max_yx(positions: set[tuple[int, int]]) -> tuple[int, int, int, int]: return min(ys), min(xs), max(ys), max(xs) -def print_positions(positions: set[tuple[int, int]]): - min_y, min_x, max_y, max_x = min_max_yx(positions) - print( - "\n".join( - "".join( - "#" if (y, x) in positions else "." for x in range(min_x - 1, max_x + 2) - ) - for y in range(min_y - 1, max_y + 2) - ) - ) - - def round( positions: set[tuple[int, int]], directions: Directions,