Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aalekhpatel07/advent-of-code-2023
My solutions to Advent of Code 2023.
https://github.com/aalekhpatel07/advent-of-code-2023
advent-of-code advent-of-code-2023 advent-of-code-rust
Last synced: 24 days ago
JSON representation
My solutions to Advent of Code 2023.
- Host: GitHub
- URL: https://github.com/aalekhpatel07/advent-of-code-2023
- Owner: aalekhpatel07
- License: mit
- Created: 2023-12-02T03:08:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-17T05:51:46.000Z (10 months ago)
- Last Synced: 2024-01-17T10:10:20.326Z (10 months ago)
- Topics: advent-of-code, advent-of-code-2023, advent-of-code-rust
- Language: Rust
- Homepage:
- Size: 274 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Advent of Code 2023
These are my solutions to puzzles from this year's [Advent of Code](https://adventofcode.com/).
## Usage
1. Fetch your session cookie that can be obtained by [logging in](https://adventofcode.com/2023/auth/login) to Advent of Code.
2. Build the `get-inputs` executable that will fetch the inputs for the individual days automatically to a `./data/` directory.
```sh
cargo build --release --bin get-inputs --features=inputs
```
3. Set the `AOC_SESSION` environment variable to that value and invoke the `get-inputs` executable to download the inputs for the days to `./data/.in`:
```sh
AOC_SESSION="" ./target/release/get-inputs
```
4. Then run the individual executables with `cargo`. For example, `cargo run --release --bin day-05` will print the solutions for day 05 corresponding to the input in `data/05.in`.