mirror of
https://github.com/theoludwig/advent_of_code.git
synced 2025-12-11 00:32:42 +01:00
chore: simplify structure + multiple years of advent of code possible
This commit is contained in:
84 files changed
+305
-3186
No files matched your search
@@ -1,78 +1,38 @@
|
||||
<h1 align="center">theoludwig/advent_of_code_2023</h1>
|
||||
<h1 align="center">theoludwig/advent_of_code</h1>
|
||||
|
||||
<p align="center">
|
||||
<strong>My Solutions for the <a href="https://adventofcode.com/2023">Advent of Code 2023</a>, implemented in the <a href="https://www.rust-lang.org/">Rust Programming Language</a>.</strong>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="./CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="CONTRIBUTING" /></a>
|
||||
<a href="./LICENSE"><img src="https://img.shields.io/badge/licence-MIT-blue.svg" alt="Licence MIT"/></a>
|
||||
<a href="./CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg" alt="Contributor Covenant" /></a>
|
||||
<br />
|
||||
<a href="https://github.com/theoludwig/advent_of_code_2023/actions/workflows/ci.yml"><img src="https://github.com/theoludwig/advent_of_code_2023/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI" /></a>
|
||||
<a href="https://www.rust-lang.org/"><img src="https://img.shields.io/badge/Rust%20MSRV-v1.74.0-blue?logo=rust" alt="Rust" /></a>
|
||||
<a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg" alt="Conventional Commits" /></a>
|
||||
<strong>My Solutions for the <a href="https://adventofcode.com/">Advent of Code</a>, implemented in the <a href="https://www.rust-lang.org/">Rust Programming Language</a>.</strong>
|
||||
</p>
|
||||
|
||||
## Days Progress
|
||||
|
||||
- [Day 1 (`**`)](./day_1)
|
||||
- [Day 2 (`**`)](./day_2)
|
||||
- [Day 3 (`**`)](./day_3)
|
||||
- [Day 4 (`**`)](./day_4)
|
||||
- [Day 5 (`**`)](./day_5)
|
||||
- [Day 6 (`**`)](./day_6)
|
||||
- [Day 7 (`*`)](./day_7)
|
||||
- [Day 8 (`*`)](./day_8)
|
||||
### [2023](./advent_2023)
|
||||
|
||||
## Getting Started
|
||||
- [Day 1 (`**`)](./advent_2023/puzzle_2023_day_1)
|
||||
- [Day 2 (`**`)](./advent_2023/puzzle_2023_day_2)
|
||||
- [Day 3 (`**`)](./advent_2023/puzzle_2023_day_3)
|
||||
- [Day 4 (`**`)](./advent_2023/puzzle_2023_day_4)
|
||||
- [Day 5 (`**`)](./advent_2023/puzzle_2023_day_5)
|
||||
- [Day 6 (`**`)](./advent_2023/puzzle_2023_day_6)
|
||||
- [Day 7 (`*`)](./advent_2023/puzzle_2023_day_7)
|
||||
- [Day 8 (`*`)](./advent_2023/puzzle_2023_day_8)
|
||||
|
||||
### Prerequisites
|
||||
## Prerequisite: Rust Toolchain
|
||||
|
||||
#### Rust Toolchain
|
||||
The project is **tested** against the following [Rust](https://www.rust-lang.org/) versions:
|
||||
|
||||
The current Minimum Supported [Rust](https://www.rust-lang.org/) Version (MSRV) is **v1.74.0**.
|
||||
|
||||
The project is **tested** against the following Rust versions:
|
||||
|
||||
- **Minimum Supported Rust Version (MSRV): v1.74.0**
|
||||
- **Minimum Supported Rust Version (MSRV): v1.84.1**
|
||||
- **Latest Stable Version**
|
||||
|
||||
#### External Linting Tools (optional)
|
||||
|
||||
**External linting tools** are used to ensure a consistent code style (external to Rust) and commit message format. They are **used in the Continuous Integration (CI)** pipeline and **can be optionally used locally**.
|
||||
|
||||
They have to be installed using [Node.js](https://nodejs.org/) >= v20.0.0 and [npm](https://www.npmjs.com/) >= v10.0.0.
|
||||
## Usage
|
||||
|
||||
```sh
|
||||
npm clean-install
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
```sh
|
||||
# Run a specific day's challenge (e.g. Day 1)
|
||||
cargo run --package day_1
|
||||
# Run a specific day's challenge (e.g. Day 1 of 2023)
|
||||
cargo run --package puzzle_2023_day_1
|
||||
|
||||
# Build, Lint, and Test Usage
|
||||
cargo build
|
||||
cargo test
|
||||
cargo clippy --verbose -- -D warnings
|
||||
cargo fmt -- --check
|
||||
|
||||
# External Linting Tools Usage (optional)
|
||||
echo 'chore: try commitlint' | npm run lint:commit
|
||||
npm run lint:editorconfig
|
||||
npm run lint:markdown
|
||||
npm run lint:prettier
|
||||
```
|
||||
|
||||
## 💡 Contributing
|
||||
|
||||
Anyone can help to improve the project, submit a Feature Request, a bug report or even correct a simple spelling mistake.
|
||||
|
||||
The steps to contribute can be found in the [CONTRIBUTING.md](./CONTRIBUTING.md) file.
|
||||
|
||||
## 📄 License
|
||||
|
||||
[MIT](./LICENSE)
|
||||
Reference in new issue
Block a user