Awesome
My solutions to the 2020 edition of Advent Of Code.
Previous participations
Problems & Solutions
- Day 1: solution
- Day 2: solution
- Day 3: solution
- Day 4: solution
- Day 5: solution
- Day 6: solution
- Day 7: solution
- Day 8: solution
- Day 9: solution
- Day 10: solution
- Day 11: solution
- Day 12: solution
- Day 13: solution
- Day 14: solution
- Day 15: solution
- Day 16: solution
- Day 17: solution
- Day 18: solution
- Day 19: solution
- Day 20: solution
- Day 21: solution
- Day 22: solution
- Day 23: solution
- Day 24: solution
- Day 25: solution
Usage
This project runs on Scala Dotty 3.0.0-M3
and sbt 1.4.4
.
Use the following template to write a solution:
package adventofcode.solutions
import adventofcode.Day
object Day01 extends Day(1):
override def solutionA = ???
override def solutionB = ???
(change 1
to the current problem day and fill in the ???
)
Then, to run your code start by entering the sbt shell:
$ sbt
And type the following command:
> day 1
The output will be printed to the console and stored to the corresponding files in output/
.
Alternatively, since Day
extends App
, all singleton children can be run as regular applications.
License
MIT
An exception is made for the files Day.scala
and build.sbt
which I expressively release in the public domain.