-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,060 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Usage: | ||
# | ||
# Initially: | ||
# make DAY=1 DEBUG=1 | ||
# | ||
# Then: | ||
# make DAY=1 DEBUG=0 | ||
|
||
DAY ?= 1 | ||
DEBUG ?= 1 | ||
|
||
SAMPLE = day$(DAY)/sample.txt | ||
INPUT = day$(DAY)/input.txt | ||
OUTPUT = day$(DAY)/output.txt | ||
TARGET = day$(DAY)/main.py | ||
TEMPLATE = ../template.py | ||
|
||
ifeq ($(DEBUG), 0) | ||
ACTUAL_INPUT = $(INPUT) | ||
else | ||
ACTUAL_INPUT = $(SAMPLE) | ||
endif | ||
|
||
all: | ||
./$(TARGET) $(ACTUAL_INPUT) | tee $(OUTPUT) | ||
|
||
new: | ||
mkdir day$(DAY) | ||
touch $(INPUT) $(SAMPLE) | ||
cp $(TEMPLATE) $(TARGET) | ||
|
||
.PHONY: all new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Advent of Code 2023 - My Solutions | ||
|
||
 | ||
|
||
Something is wrong with global snow production, and you've been selected to take a look. The Elves have even given you a map; on it, they've used stars to mark the top fifty locations that are likely to be having problems. | ||
|
||
You've been doing this long enough to know that to restore snow operations, you need to check all fifty stars by December 25th. | ||
|
||
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck! |
Oops, something went wrong.