This repository contains solutions to various puzzles of the Advent of Code 2020. Puzzles are solved with various idioms and libraries from the Scala ecosystem.
Ammonite is used to run the code.
It is available from many package managers (e.g. brew install ammonite-repl
).
When running a puzzle solution (e.g. amm day2.sc
) dependencies will be downloaded automatically.
Probably will register any assertions in the code and will print a summary:
┌─────┬────────┬──────────────────────────────────────────────┬───────┬───────┐
│ │ Hash │ Test │ Time │ Debug │
├─────┼────────┼──────────────────────────────────────────────┼───────┼───────┤
│ ✓ │ 71d872 │ valid paswords by the first validation rule │ 0.046 │ │
│ ✓ │ baa61a │ valid paswords by the second validation rule │ 0.001 │ │
└─────┴────────┴──────────────────────────────────────────────┴───────┴───────┘
Passed: 2 Failed: 0 Total: 2
✓ Pass ✗ Fail
? Throws in check ! Throws in body
± Fails sometimes # Suite partially fails
List of solutions and Scala idioms/libraries used: