https://github.com/ryanfowler/aoc2022
My advent of code solutions for 2022 in Rust :)
https://github.com/ryanfowler/aoc2022
advent-of-code advent-of-code-2022 aoc aoc-2022
Last synced: about 1 month ago
JSON representation
My advent of code solutions for 2022 in Rust :)
- Host: GitHub
- URL: https://github.com/ryanfowler/aoc2022
- Owner: ryanfowler
- License: mit
- Created: 2022-12-06T01:45:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T04:44:18.000Z (over 3 years ago)
- Last Synced: 2024-04-01T18:10:46.023Z (about 2 years ago)
- Topics: advent-of-code, advent-of-code-2022, aoc, aoc-2022
- Language: Rust
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aoc2022
My advent of code solutions for 2022 in Rust :)
Note: these solutions are **not** optimized and you will notice quite a few
`.unwrap()`s, as it is assumed that the input is valid and properly formed.
## Setup
In order to download the inputs, you will need to collect and save your session
cookie from [adventofcode.com](https://adventofcode.com). After signing in, use
the developer tools in your browser to find the cookie named "session" and store
the value to a file in the root of this repository called `session.txt`.
To setup a day that has not yet been initialized, you may run the command:
```sh
make setup-day01
```
replacing the suffix `"01"` with the appropriate day.
## Running
To run the code for all available days, use the command:
```sh
make
```
To actually run the code for a specific day, you may run the command:
```sh
make run-day01
```
replacing the suffix `"01"` with the appropriate day.
### Docker
To run each solution with Docker, you may run the command:
```sh
make docker-run-day01
```
again replacing the suffix `"01"` with the appropriate day.