From 1c2a4c6e591569134cb0347457e2280f09149627 Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Thu, 2 Dec 2021 23:52:49 +0100 Subject: [PATCH] Add Readme --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e62fcf2 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Advent of Code 2021 + +See also [Advent of Code homepage](https://adventofcode.com/2021) + +## Running + +To call the main method via `sbt`, use `sbt run [sample] + - `` should be a directory containing files named `day1.txt`, `day2.txt`, ... + - `` 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 `/day.txt` as input. If a sample input number `S` is given, `/day-sample.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" +```