An open API service indexing awesome lists of open source software.

https://github.com/homocodens/adventofcode_2021_scala


https://github.com/homocodens/adventofcode_2021_scala

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Advent of Code 2021 in Scala

Solutions for [Advent of Code 2021](https://adventofcode.com/2021)

## Personal goals

* Get to know a new language
* See how good I can get in a month
* Save christmas!

## Take aways

While some things seemed fishy at first (`def foo(f: Int)(x: Int)`) the language has really grown on me. The pattern matching and `apply`/`unapply` could well be my favourite features learned in 2021.

## Requirements
* Scala `2.13.7`
* sbt `1.5.5`

## Setup
```
git clone https://github.com/HomoCodens/adventofcode_2021_scala
cd adventofcode_2021_scala
```
Optionally:
Copy your own inputs into `inputs/dayX/input.txt`. Only example inputs (`-t `) are included in this repo.
```
sbt
run -d 1 -i ./inputs -t 1
run --help
```

## Usage
```
-t, --test Run day against test input.
-v, --verbose Print addidional output.
-T, --time Time the solution.
-d, --day The day to run.
-i, --input Path to input folder.
--help Print this help message.
```