I'm challenging myself to complete the Advent of Code 2022 and using this repository to store my code.
Day | Repo Link | Difficulty (1-5) | Part 1 | Part 2 |
---|---|---|---|---|
1 | Day 1 | ⭐ | ✔️ | ✔️ |
2 | Day 2 | ⭐ | ✔️ | ✔️ |
3 | Day 3 | ⭐ | ✔️ | ✔️ |
4 | Day 4 | ⭐ | ✔️ | ✔️ |
5 | Day 5 | ⭐⭐ | ✔️ | ✔️ |
6 | Day 6 | ⭐ | ✔️ | ✔️ |
7 | Day 7 | ⭐⭐⭐ | ✔️ | ✔️ |
8 | Day 8 | ⭐ | ✔️ | ✔️ |
9 | Day 9 | ⭐⭐⭐⭐ | ✔️ | ✔️ |
10 | Day 10 | ⭐ | ✔️ | ✔️ |
11 | Day 11 | ⭐⭐⭐ | ✔️ | ✔️ |
The DayRunner
class makes it easy to run my solutions without having to manually provide the python file for the solution or the data needed to load. The DayRunner
can be called using the following syntax:
python ./DayRunner.py --day <NUM> --new-day
The above command will create a new diretory with the templated Solver.py
and an empty testdata.txt
and data.txt
file. You will need to populate the testdata.txt
and data.txt
files with the appropriate data from the Advent of Code 2022 website. The newly created Solver.py
file will contain boiler-plate code to run the data and you will need to implement the solve_part_1()
and solve_part_2()
functions.
python ./DayRunner.py --day <NUM>
The above command will run the Solver.py
file located under the Day<NUM>
directory.
The DataLoader
was created to simplify data loading based on the day and copying the template code for new days. It is utilized by the DayRunner
and is a static class.