|
1 |
| -π Advent of Code 2024 π¦ |
2 |
| -Welcome to the Advent of Code 2024 project! This repository contains my solutions to the Advent of Code challenges, implemented in Rust. Get ready to dive into the holiday spirit with some coding fun! πβ¨ |
| 1 | +# π Advent of Code 2024 π¦ |
| 2 | + |
| 3 | +Welcome to the **Advent of Code 2024** project! This repository contains my solutions to the Advent of Code challenges, implemented in Rust. Get ready to dive into the holiday spirit with some coding fun! πβ¨ |
| 4 | + |
| 5 | +## π
Getting Started |
3 | 6 |
|
4 |
| -π
Getting Started |
5 | 7 | To run the solutions for a specific day, you'll need to have Rust installed on your machine. If you haven't already, you can install Rust from rust-lang.org.
|
6 | 8 |
|
7 |
| -π Running the Solutions |
| 9 | +## π Running the Solutions |
| 10 | + |
8 | 11 | This project includes a command-line interface to easily run the solution for any day. Simply use the following command:
|
9 | 12 |
|
| 13 | +```bash |
10 | 14 | cargo run <day>
|
| 15 | +``` |
| 16 | + |
11 | 17 | Replace <day> with the day number you want to run (e.g., 1 for Day 1). For example:
|
12 | 18 |
|
| 19 | +```bash |
13 | 20 | cargo run 1
|
| 21 | +``` |
| 22 | + |
14 | 23 | This will execute the solutions for Day 1 and display the results for both parts. π
|
15 | 24 |
|
16 |
| -π Project Structure |
17 |
| -src/: Contains the Rust source files for each day's challenge. |
18 |
| -input/: Stores the input files for each day. |
19 |
| -Cargo.toml: Manages dependencies and project metadata. |
20 |
| -π Adding New Days |
| 25 | +## π Project Structure |
| 26 | + |
| 27 | +- src/: Contains the Rust source files for each day's challenge. |
| 28 | +- input/: Stores the input files for each day. |
| 29 | +- Cargo.toml: Manages dependencies and project metadata. |
| 30 | + |
| 31 | +## π Adding New Days |
| 32 | + |
21 | 33 | To add a new day's solution:
|
22 | 34 |
|
23 |
| -Create a new file in the src/ directory named dayXX.rs, where XX is the day number. |
24 |
| -Implement the solution functions (solve_part1 and solve_part2) in the new file. |
25 |
| -Add the module to main.rs and update the match statement to include the new day. |
26 |
| -π
Contributing |
| 35 | +1. Create a new file in the src/ directory named dayXX.rs, where XX is the day number. |
| 36 | +2. Implement the solution functions (solve_part1 and solve_part2) in the new file. |
| 37 | +3. Add the module to main.rs and update the match statement to include the new day. |
| 38 | + |
| 39 | +## π
Contributing |
| 40 | + |
27 | 41 | Feel free to fork this repository and contribute your own solutions or improvements. Let's make this a collaborative and festive coding experience! π€Άπ
|
28 | 42 |
|
29 |
| -π Happy Coding! |
| 43 | +## π Happy Coding! |
| 44 | + |
30 | 45 | May your days be merry and bright and may your code be bug-free! πβ¨
|
0 commit comments