diff options
-rw-r--r-- | 14.py | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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(',')) |