Skip to content

Latest commit

 

History

History
148 lines (110 loc) · 6.1 KB

README.md

File metadata and controls

148 lines (110 loc) · 6.1 KB

Advent of Code 2019

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 in AOC_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.
  • 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 :)

Recap

Day Completed Project Challenge Language Tests
01 day01 Advent of Code 2019 - Day 01 Go
02 day02 Advent of Code 2019 - Day 02 Go
03 day03 Advent of Code 2019 - Day 03 Go
04 day04 Advent of Code 2019 - Day 04 Go
05 day05 Advent of Code 2019 - Day 05 Go
06 day06 Advent of Code 2019 - Day 06 Go
07 🔜 day07 Advent of Code 2019 - Day 07 Go 🔜
08 🔜 day08 Advent of Code 2019 - Day 08 Go 🔜
09 🔜 day09 Advent of Code 2019 - Day 09 Go 🔜
10 🔜 day10 Advent of Code 2019 - Day 10 Go 🔜
11 🔜 day11 Advent of Code 2019 - Day 11 Go 🔜
12 🔜 day12 Advent of Code 2019 - Day 12 Go 🔜
13 🔜 day13 Advent of Code 2019 - Day 13 Go 🔜
14 🔜 day14 Advent of Code 2019 - Day 14 Go 🔜
15 🔜 day15 Advent of Code 2019 - Day 15 Go 🔜
16 🔜 day16 Advent of Code 2019 - Day 16 Go 🔜
17 🔜 day17 Advent of Code 2019 - Day 17 Go 🔜
18 🔜 day18 Advent of Code 2019 - Day 18 Go 🔜
19 🔜 day19 Advent of Code 2019 - Day 19 Go 🔜
20 🔜 day20 Advent of Code 2019 - Day 20 Go 🔜
21 🔜 day21 Advent of Code 2019 - Day 21 Go 🔜
22 🔜 day22 Advent of Code 2019 - Day 22 Go 🔜
23 🔜 day23 Advent of Code 2019 - Day 23 Go 🔜
24 🔜 day24 Advent of Code 2019 - Day 24 Go 🔜
25 🔜 day25 Advent of Code 2019 - Day 25 Go 🔜

Day 1

Part 1

Part 2

Day 2

Part 1

Part 2

Day 3

Part 1

Part 2

Day 4

Part 1

Part 2

Day 5

Part 1

Part 2

Day 6

Part 1

Part 2