Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beeb/aoc-2022
My solutions for Advent of Code 2022, written in Rust
https://github.com/beeb/aoc-2022
advent-of-code advent-of-code-2022 rust rust-lang
Last synced: 10 days ago
JSON representation
My solutions for Advent of Code 2022, written in Rust
- Host: GitHub
- URL: https://github.com/beeb/aoc-2022
- Owner: beeb
- Created: 2022-11-22T17:32:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T07:46:32.000Z (over 1 year ago)
- Last Synced: 2024-11-13T14:54:57.195Z (about 2 months ago)
- Topics: advent-of-code, advent-of-code-2022, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 184 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Template largely copied from [RikvanToor/aoc-rust-template](https://github.com/RikvanToor/aoc-rust-template), upgraded for `clap` v4.
This template can be forked/cloned from [beeb/aoc-rust](https://github.com/beeb/aoc-rust).
## Usage
First, find your session cookie. To do so, go to [https://adventofcode.com](adventofcode.com), log in, and press F12. In the "Application" tab, under "Storage > Cookies > https://adventofcode.com", copy the value of the "session" cookie. Paste it into a file named `.session` at the root of the project. You can now download input files. To do so, run the subcommand `get-input`: `cargo run -- get-input 1`. The `1` stands for day 1, meaning it will download the input of day 1 of Advent of Code. Alternatively, from december 1st to 25th, you can skip the day parameter, and the program will download today's input. You can also use `--all` instead of a day parameter to download all input files.
To run an implementation, use `cargo run -- run 1` to run day 1. Just like `get-input`, you can skip the day parameter to run today's program, or use `--all` to run all days.