summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2022-12-14 13:36:27 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2022-12-14 13:36:27 +0000
commiteee071c0cf4b209c1a4ab1ade53fa6012f22f81f (patch)
tree4b07e0370b1b58cc5e8367c56fac28a8aab445a9
parent9155f3fbeb4b8abae995e22782b25de4d162e010 (diff)
downloadaoc2022-eee071c0cf4b209c1a4ab1ade53fa6012f22f81f.tar.gz
aoc2022-eee071c0cf4b209c1a4ab1ade53fa6012f22f81f.tar.xz
aoc2022-eee071c0cf4b209c1a4ab1ade53fa6012f22f81f.zip
14 remove superfluous code
-rw-r--r--14.py16
1 files changed, 0 insertions, 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(','))