From f3e3e3e354b87f4ce27bd74bf14cec05d06974b6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 30 Nov 2022 12:23:17 +0100 Subject: Lots of cleanup and stuff --- 2015/15/Makefile | 9 +-------- 2015/15/puzzles.py | 6 ++++++ 2 files changed, 7 insertions(+), 8 deletions(-) (limited to '2015/15') 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(): -- cgit v1.2.3