diff --git a/AdventOfCode2025/AdventSolution.cs b/AdventOfCode2025/AdventSolution.cs new file mode 100644 index 0000000..c2599da --- /dev/null +++ b/AdventOfCode2025/AdventSolution.cs @@ -0,0 +1,18 @@ +namespace AdventOfCode2025; + +public interface IAdventSolution +{ + public AdventSolution Solve(string input); +} + +public record struct AdventSolution(string PartOne, string PartTwo); + +public class AdventSolver where T : IAdventSolution, new() +{ + public static void Solve(string input, int day, string title) + { + var solver = new T(); + var solution = solver.Solve(input); + Console.WriteLine($"Day {day}: {title}\nPart 1: {solution.PartOne}\nPart 2: {solution.PartTwo}"); + } +} \ No newline at end of file