Skip to content

Advent of Code solutions in Crystal

License

Notifications You must be signed in to change notification settings

gregawoods/advent-of-code-crystal-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 23, 2024
80a7228 · Dec 23, 2024

History

39 Commits
Dec 17, 2024
Dec 22, 2024
Dec 2, 2024
Dec 23, 2024
Dec 23, 2024
Dec 2, 2024
Dec 2, 2024
Dec 2, 2024
Dec 5, 2024
Dec 16, 2024
Dec 16, 2024

Repository files navigation

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

Releases

No releases published

Packages

No packages published