github.com/gregawoods/advent-of-code-crystal-2024
main / published Dec 23, 2024 / repository
Advent of Code solutions in Crystal
Advent of Code
Crystal solutions to Advent of Code.
Installation
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.
Usage
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
Testing
Run all tests:
crystal spec
Run a specific test:
crystal spec spec/01_spec.cr:8