https://github.com/homocodens/adventofcode_2021_scala
https://github.com/homocodens/adventofcode_2021_scala
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/homocodens/adventofcode_2021_scala
- Owner: HomoCodens
- Created: 2021-12-01T20:32:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T13:12:23.000Z (over 4 years ago)
- Last Synced: 2025-06-04T00:06:14.606Z (about 1 year ago)
- Language: Scala
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
```