From 616f21515839568e1d01a1fc1521d1c9b75f641a Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Tue, 12 Sep 2023 14:25:52 -0400 Subject: [PATCH] misc --- .../Problems/AOC2022/Day12/HillClimbing.cs | 27 +++++++++++++++++++ .../Problems/AOC2022/Day13/DistressSignal.cs | 27 +++++++++++++++++++ .../AOC2022/Day14/RegolithReservoir.cs | 27 +++++++++++++++++++ AdventOfCode/Runner/AOCRunner.cs | 3 +++ 4 files changed, 84 insertions(+) create mode 100644 AdventOfCode/Problems/AOC2022/Day12/HillClimbing.cs create mode 100644 AdventOfCode/Problems/AOC2022/Day13/DistressSignal.cs create mode 100644 AdventOfCode/Problems/AOC2022/Day14/RegolithReservoir.cs diff --git a/AdventOfCode/Problems/AOC2022/Day12/HillClimbing.cs b/AdventOfCode/Problems/AOC2022/Day12/HillClimbing.cs new file mode 100644 index 0000000..d501cf5 --- /dev/null +++ b/AdventOfCode/Problems/AOC2022/Day12/HillClimbing.cs @@ -0,0 +1,27 @@ +using AdventOfCode.Runner.Attributes; + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AdventOfCode.Problems.AOC2022.Day12; +[ProblemInfo(2022, 12, "Hill Climbing Algorithm")] +internal class HillClimbing : Problem +{ + public override void CalculatePart1() + { + throw new NotImplementedException(); + } + + public override void CalculatePart2() + { + throw new NotImplementedException(); + } + + public override void LoadInput() + { + throw new NotImplementedException(); + } +} diff --git a/AdventOfCode/Problems/AOC2022/Day13/DistressSignal.cs b/AdventOfCode/Problems/AOC2022/Day13/DistressSignal.cs new file mode 100644 index 0000000..e13f8b6 --- /dev/null +++ b/AdventOfCode/Problems/AOC2022/Day13/DistressSignal.cs @@ -0,0 +1,27 @@ +using AdventOfCode.Runner.Attributes; + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AdventOfCode.Problems.AOC2022.Day13; +[ProblemInfo(2022, 13, "Distress Signal")] +internal class DistressSignal : Problem +{ + public override void CalculatePart1() + { + throw new NotImplementedException(); + } + + public override void CalculatePart2() + { + throw new NotImplementedException(); + } + + public override void LoadInput() + { + throw new NotImplementedException(); + } +} diff --git a/AdventOfCode/Problems/AOC2022/Day14/RegolithReservoir.cs b/AdventOfCode/Problems/AOC2022/Day14/RegolithReservoir.cs new file mode 100644 index 0000000..de47857 --- /dev/null +++ b/AdventOfCode/Problems/AOC2022/Day14/RegolithReservoir.cs @@ -0,0 +1,27 @@ +using AdventOfCode.Runner.Attributes; + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AdventOfCode.Problems.AOC2022.Day14; +[ProblemInfo(2022, 14, "Regolith Reservoir")] +internal class RegolithReservoir : Problem +{ + public override void CalculatePart1() + { + throw new NotImplementedException(); + } + + public override void CalculatePart2() + { + throw new NotImplementedException(); + } + + public override void LoadInput() + { + throw new NotImplementedException(); + } +} diff --git a/AdventOfCode/Runner/AOCRunner.cs b/AdventOfCode/Runner/AOCRunner.cs index 91dcb17..1c995b8 100644 --- a/AdventOfCode/Runner/AOCRunner.cs +++ b/AdventOfCode/Runner/AOCRunner.cs @@ -25,6 +25,9 @@ public class AOCRunner _years = new List(); _selectedYear = DateTime.Now.Year; FindProblemClasses(); + + if(!_loadedProblems.ContainsKey(_selectedYear)) + _selectedYear = _loadedProblems.Keys.First(); InitSizing(); if (_years.Count > 0)