Skip to content

benjamin-lawson/AdventOfCode2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎄 Advent Of Code 2022

I'm challenging myself to complete the Advent of Code 2022 and using this repository to store my code.

Days

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 ⭐⭐⭐ ✔️ ✔️

DayRunner

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:

Create New Day
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.

Run Day Solver
python ./DayRunner.py --day <NUM>

The above command will run the Solver.py file located under the Day<NUM> directory.

DataLoader

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages