1
0
Fork 0
advent-of-code/2021
2022-09-21 09:19:53 -04:00
..
config feat: fetch_input mix task 2022-09-21 09:19:53 -04:00
lib feat: patch README calendar with link to solution 2022-09-21 09:19:53 -04:00
test fix: remove extra solve line from puzzle case 2022-09-21 09:19:53 -04:00
.formatter.exs Setup 2021 (#1) 2022-09-21 09:19:53 -04:00
.gitignore feat: fetch_input mix task 2022-09-21 09:19:53 -04:00
.tool-versions Setup 2021 (#1) 2022-09-21 09:19:53 -04:00
mix.exs feat: fetch_input mix task 2022-09-21 09:19:53 -04:00
mix.lock feat: fetch_input mix task 2022-09-21 09:19:53 -04:00
README.md feat: patch README calendar with link to solution 2022-09-21 09:19:53 -04:00

Advent of Code 2021

Setup

Using asdf:

asdf plugin add erlang
asdf plugin add elixir
asdf install
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25

Mix Tasks

  • advent_of_code.gen.solution
  • advent_of_code.solve
  • advent_of_code.fetch_input

Run mix help <task> for details.

AdventOfCode.PuzzleSolver

A behaviour for a solution to a puzzle. Must define a solve/2 callback.

AdventOfCode.PuzzleCase

Case template defining an assert_solution/2 helper.