Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobbel2000/advent-of-code
My solutions for Advent of Code 2022, 2023 and 2024
https://github.com/gobbel2000/advent-of-code
advent-of-code advent-of-code-2022 advent-of-code-2023 advent-of-code-2024 adventofcode
Last synced: 9 days ago
JSON representation
My solutions for Advent of Code 2022, 2023 and 2024
- Host: GitHub
- URL: https://github.com/gobbel2000/advent-of-code
- Owner: Gobbel2000
- License: mit
- Created: 2022-12-01T13:18:27.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-25T09:39:14.000Z (15 days ago)
- Last Synced: 2024-12-25T10:27:41.722Z (15 days ago)
- Topics: advent-of-code, advent-of-code-2022, advent-of-code-2023, advent-of-code-2024, adventofcode
- Language: Rust
- Homepage:
- Size: 155 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My solutions to [Advent of Code](https://adventofcode.com)
I have started solving the coding puzzles of
[Advent of Code](https://adventofcode.com)
in December 2022.
All solutions are written in Rust.## Executing
This assumes that current Rust toolchain is installed.
1. Enter the directory of the appropriate year, e.g. `aoc2023`.
2. Place your input files in a new `input` directory with the name `dayX.txt`,
where `X` is the name of the day the input belongs to.
For example: `aoc2023/input/day1.txt`.
3. Run `cargo run --bin dayX` (again replacing `X` with the day number)
to run the code on the given input.
4. Add `2` as a command line argument (`cargo run --bin dayX 2`)
to run the second part of the puzzle.Instead of relying on the `input` directory it is possible to directly specify
the path of the input file in the command line arguments.
For example: `cargo run --bin dayX 2 ../my_input.txt`.> Note: Solutions of year 2022 are split into different binaries for each part
> of the puzzle. Use `--bin dayX-0` and `--bin dayX-1` in that case.