You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-26Lines changed: 64 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# advent-of-code-2024
1
+
# Advent of Code
2
2
3
3
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other.
4
4
@@ -7,7 +7,7 @@ Advent of Code is an Advent calendar of small programming puzzles for a variety
7
7
#### Clone the Repository:
8
8
9
9
```bash
10
-
https://github.com/mbrickerd/advent-of-code-2024
10
+
https://github.com/mbrickerd/advent-of-code
11
11
```
12
12
13
13
#### Install Dependencies:
@@ -71,25 +71,63 @@ This repository is a modular and efficient framework designed to manage and solv
71
71
│ └── utils
72
72
│ ├── __init__.py
73
73
│ └── initialise.py # Utilities for initializing daily solution files
74
-
├── solutions
75
-
│ ├── day01.py # Example solution for Day 1
76
-
│ ├── day02.py # Example solution for Day 2
77
-
│ └── ...
74
+
├── 2024 # 2024 Advent of Code solutions
75
+
│ ├── solutions
76
+
│ │ ├── day01.py # Solution for Day 1, 2024
77
+
│ │ ├── day02.py # Solution for Day 2, 2024
78
+
│ │ └── ...
79
+
│ ├── data
80
+
│ │ ├── day01
81
+
│ │ │ └── puzzle_input.txt
82
+
│ │ ├── day02
83
+
│ │ │ └── puzzle_input.txt
84
+
│ │ └── ...
85
+
│ └── tests
86
+
│ ├── __init__.py
87
+
│ ├── data
88
+
│ │ ├── day01
89
+
│ │ │ ├── test_01_input.txt
90
+
│ │ │ └── test_02_input.txt
91
+
│ │ ├── day02
92
+
│ │ │ ├── test_01_input.txt
93
+
│ │ │ └── test_02_input.txt
94
+
│ │ └── ...
95
+
│ ├── test_01.py # Tests for Day 1, 2024
96
+
│ ├── test_02.py # Tests for Day 2, 2024
97
+
│ └── ...
98
+
├── 2023 # 2023 Advent of Code solutions
99
+
│ ├── solutions
100
+
│ │ ├── day01.py # Solution for Day 1, 2023
101
+
│ │ ├── day02.py # Solution for Day 2, 2023
102
+
│ │ └── ...
103
+
│ ├── data
104
+
│ │ ├── day01
105
+
│ │ │ └── puzzle_input.txt
106
+
│ │ ├── day02
107
+
│ │ │ └── puzzle_input.txt
108
+
│ │ └── ...
109
+
│ └── tests
110
+
│ ├── __init__.py
111
+
│ ├── data
112
+
│ │ ├── day01
113
+
│ │ │ ├── test_01_input.txt
114
+
│ │ │ └── test_02_input.txt
115
+
│ │ ├── day02
116
+
│ │ │ ├── test_01_input.txt
117
+
│ │ │ └── test_02_input.txt
118
+
│ │ └── ...
119
+
│ ├── test_01.py # Tests for Day 1, 2023
120
+
│ ├── test_02.py # Tests for Day 2, 2023
121
+
│ └── ...
78
122
├── templates
79
123
│ ├── solutions
80
-
│ │ └── sample.py # Template for new daily solution files
124
+
│ │ └── sample.py # Template for new daily solution files
This will create a new solution file in the `solutions/` directory (e.g., `solutions/dayXX.py`) and download the test input data for the specified day and create the corresponding `test_ZZ_input.txt` file in the `data/dayXX/` directory. Add your logic for `part1` and `part2` methods in the generated solution file.
@@ -193,7 +231,7 @@ To validate a specific part of your solution (e.g., `part1` or `part2`), follow
193
231
Use the following command to fetch the test input for the desired part:
This command will create a template test file in the `tests/` directory, named `test_<day_number>.py`. The template is pre-configured to match the structure of the Solution class for that day, making it easier to insert test cases.
@@ -271,4 +309,4 @@ This will output detailed results, showing which tests passed, failed, or encoun
271
309
272
310
## Acknowledgments
273
311
274
-
This project structure was inspired by [nitekat1124's Advent of Code 2024 repository](https://github.com/nitekat1124/advent-of-code-2024).
312
+
This project structure was inspired by [nitekat1124's Advent of Code 2023 repository](https://github.com/nitekat1124/advent-of-code-2023).
0 commit comments