/advent-of-code-2018-elixir

Solutions for Advent of Code 2018 written in Elixir

Primary LanguageElixirMIT LicenseMIT

Advent of Code 2018 Elixir

Solutions for Advent of Code 2018 written in Elixir.

What to do every day

  1. Copy puzzle input to clipboard
  2. pbpaste | mix day.new day_00_some_module some_function
  3. mix test
  4. Code and test until done!
  5. git commit -p -v -e -m "Add Day00SomeModule.some_function/1"
  6. git push
  7. Update submodule https://github.com/kodsnack/advent_of_code_2018

Usage

  • mix test Run the ExUnit test suite

Puzzle input files are untracked files input/day_xx_yyyy_yyy.txt that will get picked up by test suite if present. (But note that the test suite is hardcoded to my results)

Installation

  • Install erlang
  • Install elixir