summaryrefslogtreecommitdiffstats
path: root/5.py
diff options
context:
space:
mode:
Diffstat (limited to '5.py')
-rw-r--r--5.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/5.py b/5.py
index 1e61efb..802ccc7 100644
--- a/5.py
+++ b/5.py
@@ -1,11 +1,9 @@
from collections import defaultdict, namedtuple
-from utils import open_day
-
-Pos = namedtuple('Pos', ['x', 'y'])
+from utils import open_day, Point2D
vents = [
tuple(
- Pos(*map(int, h.split(',')))
+ Point2D(*map(int, h.split(',')))
for h in l.rstrip().split(' -> ')
)
for l in open_day(5).read().rstrip().split('\n')