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

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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