11# Scala Advent of Code 2021
22
3- Scala Center's solutions of [ Advent of Code] ( https://adventofcode.com/ ) .
3+ Solutions in Scala for the annual [ Advent of Code] ( https://adventofcode.com/ ) challenge. _ Note: this repo is not affiliated with Advent of Code. _
44
55## Website
66
77The [ Scala Advent of Code] ( https://scalacenter.github.io/scala-advent-of-code/ ) website contains:
8- - some explanation of our solutions
8+ - some explanation of our solutions to [ Advent of Code (adventofcode.com) ] ( https://adventofcode.com/ )
99- more solutions from the community
1010
1111## Setup
@@ -20,14 +20,17 @@ After you clone the repository, open a terminal and run:
2020```
2121$ cd scala-advent-of-code/2021
2222$ scala-cli setup-ide src
23+ $ mkdir input
2324$ code .
2425```
2526
2627` code . ` will open Visual Studio Code and start Metals.
2728
2829### How to run a solution
2930
30- In a terminal you can run:
31+ First copy your input to the folder ` scala-advent-of-code/2021/input ` .
32+ 33+ Next, in a terminal you can run:
3134```
3235$ cd scala-advent-of-code/2021
3336$ scala-cli . -M day1.part1
@@ -36,6 +39,8 @@ Compiled project (Scala 3.x.y, JVM)
3639The solution is 1559
3740```
3841
42+ The result will likely be different for you, as inputs are different for each user.
43+ 3944Or, to run another solution:
4045```
4146$ scala-cli . -M <dayX>.<partX>
@@ -52,3 +57,6 @@ You can run it locally, if you have [Node.js](https://nodejs.org/en/) installed,
5257```
5358$ scala-cli . --js -M day3.part1
5459```
60+ 61+ ## Contributing
62+ - Please do not commit your puzzle inputs, we can not accept them as they are protected by copyright
0 commit comments