aboutsummaryrefslogtreecommitdiff
path: root/2015/15
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-30 12:23:17 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-30 12:23:17 +0100
commitf3e3e3e354b87f4ce27bd74bf14cec05d06974b6 (patch)
tree112352e9c3ba5d5d924036def2b5f853d3f8dc28 /2015/15
parent4742dd73046c53cff7fe54deee58358c3b193206 (diff)
Lots of cleanup and stuff
Diffstat (limited to '2015/15')
-rw-r--r--2015/15/Makefile9
-rw-r--r--2015/15/puzzles.py6
2 files changed, 7 insertions, 8 deletions
diff --git a/2015/15/Makefile b/2015/15/Makefile
index b01f411..0a4e980 100644
--- a/2015/15/Makefile
+++ b/2015/15/Makefile
@@ -1,8 +1 @@
-all:
- m4 -D GROUPS=5 puzzles.py | sed '/START PART 2/,/END PART 2/d' >puzzle-1.py
- m4 -D GROUPS=6 puzzles.py | sed '/START PART 1/,/END PART 1/d' >puzzle-2.py
- chmod +x puzzle-[12].py
-
-.PHONY: clean
-clean:
- rm -f puzzle-[12].py
+include ../../Makefiles/py.mk
diff --git a/2015/15/puzzles.py b/2015/15/puzzles.py
index 5c3be94..1f5fb32 100644
--- a/2015/15/puzzles.py
+++ b/2015/15/puzzles.py
@@ -6,6 +6,12 @@ from math import prod
def main() -> None:
+ # START PART 1
+ GROUPS = 5
+ # END PART 1 START PART 2
+ GROUPS = 6
+ # END PART 2
+
data: list[list[int]] = []
with open("input", "r", encoding="utf-8") as f:
for line in f.readlines():