Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/szeweq/aoc2022

Advent od Code 2022 in Rust
https://github.com/szeweq/aoc2022

advent-of-code advent-of-code-2022 advent-of-code-rust adventofcode aoc aoc-2022 aoc-2022-in-rust aoc2022 aoc2022-in-rust rust

Last synced: about 1 month ago
JSON representation

Advent od Code 2022 in Rust

Awesome Lists containing this project

README

        

# Advent of Code 2022 in Rust
Here you can find solvers with example inputs. I'm trying my best to provide the best code.

There are no explainations or comments to these solutions. Also there are mangled variable names. It will be corrected later (maybe when AoC 2022 will end).

## Calendar
| | | | | | | |
|--|--|--|--|--|--|--|
| | | |[01](src/bin/01.rs)|[02](src/bin/02.rs)|[03](src/bin/03.rs)|[04](src/bin/04.rs)|
|[05](src/bin/05.rs)|[06](src/bin/06.rs)|[07](src/bin/07.rs)|[08](src/bin/08.rs)|[09](src/bin/09.rs)|[10](src/bin/10.rs)|[11](src/bin/11.rs)|
|[12](src/bin/12.rs)|[13](src/bin/13.rs)|[14](src/bin/14.rs)|[15](src/bin/15.rs)|[16](src/bin/16.rs)|[17](src/bin/17.rs)|[18](src/bin/18.rs)|
|[19](src/bin/19.rs)|[20](src/bin/20.rs)|[21](src/bin/21.rs)|[22](src/bin/22.rs)|[23](src/bin/23.rs)|[24](src/bin/24.rs)|[25](src/bin/25.rs)|
|~~26~~|~~27~~|~~28~~|~~29~~|~~30~~|~~31~~| |

Check out [Online Solvers available on my website](https://szeweq.xyz/aoc/2022)!

## Inputs
Add inputs in text files matching a binary name, like `01.txt`, into the `inputs/` directory.

## Testing
Use this command (replace `` with approperiate 2-digit day number):
```sh
cargo ex
```

## Running
Make sure there is an input text file in `inputs/` and then type the following command (replace `` with the day number):
```sh
cargo solve
```