Home

Awesome

My solutions to the 2020 edition of Advent Of Code.

Previous participations

Problems & Solutions

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.