Find a file
Alexander Gehrke 38e907ddf6 Fix typo
2021-12-07 16:03:17 +01:00
input/2021 Day 6 2021-12-06 18:35:04 +01:00
project Add base structure and library stuff from last year 2021-12-02 23:34:40 +01:00
src/main/scala/de.qwertyuiop.aoc Fix typo 2021-12-07 16:03:17 +01:00
.gitignore Add base structure and library stuff from last year 2021-12-02 23:34:40 +01:00
build.sbt Add base structure and library stuff from last year 2021-12-02 23:34:40 +01:00
README.md Add Readme 2021-12-02 23:52:49 +01:00

Advent of Code 2021

See also Advent of Code homepage

Running

To call the main method via sbt, use `sbt run <input_dir> [sample]

  • <input_dir> should be a directory containing files named day1.txt, day2.txt, ...
  • <day> is given as a single integer
  • optionally, [sample] is the number of a sample input to use (place in the input directory)

Without a sample input number, the solution for the given day X will be run with <input dir>/day<X>.txt as input. If a sample input number S is given, <input dir>/day<X>-sample<S>.txt is used instead.

Examples:

# Run day 1 with day1.txt
sbt "run input/2021 1"

# Run day 2 with day2-sample1.txt
sbt "run input/2021 2 1"