Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/troykomodo/aoc2023
Advent of Code 2023
https://github.com/troykomodo/aoc2023
2023 advent-of-code rust
Last synced: about 1 month ago
JSON representation
Advent of Code 2023
- Host: GitHub
- URL: https://github.com/troykomodo/aoc2023
- Owner: TroyKomodo
- License: mit
- Created: 2023-12-03T17:30:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-07T19:21:18.000Z (about 1 year ago)
- Last Synced: 2024-04-28T07:33:58.707Z (8 months ago)
- Topics: 2023, advent-of-code, rust
- Language: Rust
- Homepage:
- Size: 74.2 KB
- Stars: 0
- 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
## About
The advent problems have been solved using Rust. All solutions are in the `src/dayX.rs` files.
There are unit tests for each day which test the examples given in the problem description, as well as the input given in the `inputs/dayX` files.### Testing & Code Coverage
```bash
cargo llvm-cov nextest --lcov --output-path lcov.info
```You can use a lcov viewer like Coverage Gutters in VSCode to view the coverage or use the following command to generate a html report.
```bash
genhtml -o coverage lcov.info
```## [--- Day 1: Trebuchet?! ---](./problems/day1.md)
```bash
cat inputs/day1 | cargo run --bin day1
```## [--- Day 2: Cube Conundrum ---](./problems/day2.md)
```bash
cat inputs/day2 | cargo run --bin day2
```## [--- Day 3: Gear Ratios ---](./problems/day3.md)
```bash
cat inputs/day3 | cargo run --bin day3
```## [--- Day 4: Scratchcards ---](./problems/day4.md)
```bash
cat inputs/day4 | cargo run --bin day4
```## [--- Day 5: If You Give A Seed A Fertilizer ---](./problems/day5.md)
```bash
cat inputs/day5 | cargo run --bin day5
```## [--- Day 6: Wait For It ---](./problems/day6.md)
```bash
cat inputs/day6 | cargo run --bin day6
```## [--- Day 7: Camel Cards ---](./problems/day7.md)
```bash
cat inputs/day7 | cargo run --bin day7
```