Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 38bc83f

Browse files
delete input files (#542)
1 parent bd698a4 commit 38bc83f

File tree

57 files changed

+35
-29458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+35
-29458
lines changed

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Advent of Code stuff
2+
## DO NOT COMMIT YOUR INPUTS - THEY ARE COPYRIGHT PROTECTED
3+
input
4+
15
# Scala stuff
26
.bloop/
37
.bsp/

‎2021/README.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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

77
The [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)
3639
The solution is 1559
3740
```
3841

42+
The result will likely be different for you, as inputs are different for each user.
43+
3944
Or, 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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /