This repository contains my solutions for the advent of code puzzles of year 2019. If you're looking for 2018, here it is.
The improvement over last year is that this year, I'm adding a handy Makefile which does the following:
- Automatically downloads the challenge and input for the day (e.g.:
make download DAY=03
)- In order to use this target, you need to specify your session cookie from
adventofcode.com
inAOC_COOKIE
. - Parses the challenge into a markdown file (adds Markdown style headers and code blocks).
- This part still needs a bit of work, as multiline code blocks are not supported yet, and formatting (bold, italics etc.) is lost.
- In order to use this target, you need to specify your session cookie from
- Automatically generates a folder structure to contain a program for each part of each day
- Runs the solutions for each day that was currently implemented (
make run
) - Runs all unit tests (
make test
) - Is self-documented (
make help
)
You can reuse this Makefile for other years by specifying the YEAR
variable in your environment. By default, it is going to use 2019
.
Here is an example of how it looks (the output is normally not cut, but puzzle descriptions are too long to fit on an example screenshot). It takes about one second to download and parse the challenge, download the input, and create the folders and files for solving them. Feel free to change the template to fit your way of solving AOC puzzles, if you want to reuse this repository :)