From eee071c0cf4b209c1a4ab1ade53fa6012f22f81f Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 14 Dec 2022 13:36:27 +0000 Subject: 14 remove superfluous code --- 14.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/14.py b/14.py index 76c45ed..fa81fec 100644 --- a/14.py +++ b/14.py @@ -2,22 +2,6 @@ from utils import open_day, sliding_window from enum import Enum, auto from itertools import count -def display(sandbox, minx, miny, maxx, maxy): - for y in range(miny, maxy + 1): - line = [] - for x in range(minx, maxx + 1): - p = x, y - if p in sandbox: - if sandbox[p] == Tile.WALL: - line.append('#') - else: - line.append('o') - else: - line.append('.') - if x == 500 and y == 0: - line[-1] = '+' - print(''.join(line)) - def point_from_str(s): return tuple(int(d) for d in s.split(',')) -- cgit v1.2.3-54-g00ecf