Skip to content

Commit

Permalink
prepare for AoC 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed Dec 4, 2023
1 parent e393f42 commit 2259255
Show file tree
Hide file tree
Showing 8 changed files with 1,060 additions and 1 deletion.
32 changes: 32 additions & 0 deletions 2023/Makefile
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
9 changes: 9 additions & 0 deletions 2023/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Advent of Code 2023 - My Solutions

![Completion Status](https://img.shields.io/badge/stars%20⭐-0/50-yellow)

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!
Loading

0 comments on commit 2259255

Please sign in to comment.