This repository has been archived by the owner. It is now read-only.

advent-of-code-2020

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

  • 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
Repository

advent-of-code-2020

Owner
Statistic
  • 1
  • 0
  • 1
  • 0
  • 1
  • almost 4 years ago
  • December 2, 2020
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 20:57:37 GMT

Languages