Crystal solutions to Advent of Code.
First install crystal.
Note: If on macOS, I recommend installing via homebrew because it includes interpreter support. The current version installed by asdf does not support the interpreter.
Create a file at .session
and enter your cookie value.
Download input for a day:
crystal run ./src/advent_of_code.cr -- -d 3
Solve a day:
crystal run ./src/advent_of_code.cr -- -s 1
Run all tests:
crystal spec
Run a specific test:
crystal spec spec/01_spec.cr:8