chore: Move solutions to solutions folder
This commit is contained in:
parent
3723115a4a
commit
99b435e14c
7 changed files with 10 additions and 8 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
namespace AdventOfCode2025;
|
using AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
|
namespace AdventOfCode2025;
|
||||||
|
|
||||||
internal class Program
|
internal class Program
|
||||||
{
|
{
|
||||||
|
|
@ -19,7 +21,7 @@ internal class Program
|
||||||
{
|
{
|
||||||
var solutionText = $"Solution for Day {day.ToString().PadLeft(2, '0')}:";
|
var solutionText = $"Solution for Day {day.ToString().PadLeft(2, '0')}:";
|
||||||
var className = $"Day{day}";
|
var className = $"Day{day}";
|
||||||
var classType = Type.GetType($"AdventOfCode2025.{className}");
|
var classType = Type.GetType($"AdventOfCode2025.Solutions.{className}");
|
||||||
if (classType == null)
|
if (classType == null)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"{solutionText} is not implemented.");
|
Console.WriteLine($"{solutionText} is not implemented.");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using AdventOfCode2025.Inputs;
|
using AdventOfCode2025.Inputs;
|
||||||
|
|
||||||
namespace AdventOfCode2025;
|
namespace AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
public sealed class Day1 : Solution
|
public sealed class Day1 : Solution
|
||||||
{
|
{
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using AdventOfCode2025.Inputs;
|
using AdventOfCode2025.Inputs;
|
||||||
|
|
||||||
namespace AdventOfCode2025;
|
namespace AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
public class Day2 : Solution
|
public class Day2 : Solution
|
||||||
{
|
{
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using AdventOfCode2025.Inputs;
|
using AdventOfCode2025.Inputs;
|
||||||
|
|
||||||
namespace AdventOfCode2025;
|
namespace AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
public class Day3 : Solution
|
public class Day3 : Solution
|
||||||
{
|
{
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using AdventOfCode2025.Inputs;
|
using AdventOfCode2025.Inputs;
|
||||||
|
|
||||||
namespace AdventOfCode2025;
|
namespace AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
public class Day4 : Solution
|
public class Day4 : Solution
|
||||||
{
|
{
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using AdventOfCode2025.Inputs;
|
using AdventOfCode2025.Inputs;
|
||||||
|
|
||||||
namespace AdventOfCode2025;
|
namespace AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
public class Day5 : Solution
|
public class Day5 : Solution
|
||||||
{
|
{
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace AdventOfCode2025;
|
namespace AdventOfCode2025.Solutions;
|
||||||
|
|
||||||
public abstract class Solution
|
public abstract class Solution
|
||||||
{
|
{
|
||||||
Loading…
Add table
Add a link
Reference in a new issue