Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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`.