https://github.com/afroborg/advent-of-code-23
https://github.com/afroborg/advent-of-code-23
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/afroborg/advent-of-code-23
- Owner: afroborg
- Created: 2023-12-01T09:51:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T13:26:39.000Z (over 2 years ago)
- Last Synced: 2025-02-04T13:23:04.580Z (over 1 year ago)
- Language: Rust
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of code 2023
Solutions for [Advent of code 2023](https://adventofcode.com/2023).
## Project structure
- `template` - template for new day
- `day-xx` - solution for day `xx`
- `input1.txt` - input data for day `xx`
- `input2.txt` - input data for day `xx`
- `src` - source code for day `xx`
- `bin` - binaries to get the solution
- `part1.rs` - runs the solution for part 1 using `input1.txt`
- `part2.rs` - runs the solution for part 2 using `input2.txt`
- `lib.rs` - library with common code for part 1 and 2
- `part1.rs` - solution for part 1
- `part2.rs` - solution for part 2
### Testing
```bash
cargo test part1
cargo test part2
```
This runs the tests in `part1.rs` and `part2.rs` respectively.
## Generating a new day
Uses [cargo-generate](https://github.com/cargo-generate/cargo-generate) to generate a new day based on the [`template`](./template) directory.
```bash
cargo generate --path ./template --name day-xx
```