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:
main.crhas the code that does the interesting thingrun.crhas the code te read the big input and use ☝️- 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
- To run all the specs:
$ crystal spec(or the run button in Repl.it) - To run a specific challenge:
$ crystal run src/[NUMBER]/run.cr