Base template for Advent Of Code solutions. Updated yearly to reflect the latest .NET / C# versions.
Each day's solution will be implemented in the Solution
class located in each day's respective folder. The "day" integer property has already been filled out since that is known ahead of time, you will have to fill in the "title" since that is unknown until the day of. Each solution has two parts (methods) and they will return a string.
Solution inputs are in the Resources.resx file, the keys are already there just replace the value with your own input. The BaseSolution
abstract class has a GetResourceString()
method that will return the input as a string for you.
By default when running the project it will iterate through all days that have the Title
filled out, this will essentially run all your answers up to the day that you are currently on. However there is a GetSolutionByDay(int day)
method in the SolutionRepository
class that will return the solution instance for a specific day if preferred.
I have also included a solutions section in the README below that allows you to quickly link to the question and the answer in your repo. Maintenance is required every year (I will try to remember to update the template yearly) but if you already have it locally make sure you change the "/[YEAR]/" in the Question URL's below.
- Day 1 Question
- Day 2 Question
- Day 3 Question
- Day 4 Question
- Day 5 Question
- Day 6 Question
- Day 7 Question
- Day 8 Question
- Day 9 Question
- Day 10 Question
- Day 11 Question
- Day 12 Question
- Day 13 Question
- Day 14 Question
- Day 15 Question
- Day 16 Question
- Day 17 Question
- Day 18 Question
- Day 19 Question
- Day 20 Question
- Day 21 Question
- Day 22 Question
- Day 24 Question
- Day 24 Question
- Day 25 Question