29 lines
567 B
Markdown
29 lines
567 B
Markdown
|
|
# Aoc
|
||
|
|
|
||
|
|
Solutions for [Advent of Code 2020][1], this year in Elixir.
|
||
|
|
|
||
|
|
[Elixir 1.11.1][2] preferred.
|
||
|
|
|
||
|
|
## Help scripts
|
||
|
|
|
||
|
|
Run tests using `mix test` as usual.
|
||
|
|
|
||
|
|
Create input file, test file and solution file for a day,
|
||
|
|
using day 1 as example:
|
||
|
|
|
||
|
|
mix Aoc.new 1 "Name of the puzzle"
|
||
|
|
|
||
|
|
Solve a single puzzle, using puzzle from day 3 as example:
|
||
|
|
|
||
|
|
mix Aoc.solve 3
|
||
|
|
|
||
|
|
Solve all puzzles, starting at the first:
|
||
|
|
|
||
|
|
mix Aoc.solve_all
|
||
|
|
|
||
|
|
## Log
|
||
|
|
|
||
|
|
_Advent of Code has not started yet. See you in December!_
|
||
|
|
|
||
|
|
[1]: https://adventofcode.com/
|
||
|
|
[2]: https://hexdocs.pm/elixir/Kernel.html
|