Advent of Code

2020 edition

Crystal

Challenges for advent 2020 in crystal-lang.

All this code was run in repl.it, so forking this repo should be enough to run it on your own, with no installation required; but a VS code dev container is also provided, with debugging capabilities.

Usage

Evey advent day is in it's own folder in src/, and all have the same structure:

  1. main.cr has the code that does the interesting thing
  2. run.cr has the code te read the big input and use ☝️
  3. Other files as input

And in spec there are some tests I wrote down, mostly the ones in text form that the problem provides.

Commands