Skip to content

delete input files #542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Advent of Code stuff
## DO NOT COMMIT YOUR INPUTS - THEY ARE COPYRIGHT PROTECTED
input

# Scala stuff
.bloop/
.bsp/
Expand Down
14 changes: 11 additions & 3 deletions 2021/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Scala Advent of Code 2021

Scala Center's solutions of [Advent of Code](https://adventofcode.com/).
Solutions in Scala for the annual [Advent of Code](https://adventofcode.com/) challenge. _Note: this repo is not affiliated with Advent of Code._

## Website

The [Scala Advent of Code](https://scalacenter.github.io/scala-advent-of-code/) website contains:
- some explanation of our solutions
- some explanation of our solutions to [Advent of Code (adventofcode.com)](https://adventofcode.com/)
- more solutions from the community

## Setup
Expand All @@ -20,14 +20,17 @@ After you clone the repository, open a terminal and run:
```
$ cd scala-advent-of-code/2021
$ scala-cli setup-ide src
$ mkdir input
$ code .
```

`code .` will open Visual Studio Code and start Metals.

### How to run a solution

In a terminal you can run:
First copy your input to the folder `scala-advent-of-code/2021/input`.

Next, in a terminal you can run:
```
$ cd scala-advent-of-code/2021
$ scala-cli . -M day1.part1
Expand All @@ -36,6 +39,8 @@ Compiled project (Scala 3.x.y, JVM)
The solution is 1559
```

The result will likely be different for you, as inputs are different for each user.

Or, to run another solution:
```
$ scala-cli . -M <dayX>.<partX>
Expand All @@ -52,3 +57,6 @@ You can run it locally, if you have [Node.js](https://nodejs.org/en/) installed,
```
$ scala-cli . --js -M day3.part1
```

## Contributing
- Please do not commit your puzzle inputs, we can not accept them as they are protected by copyright
Loading