From 74e360d3fdbbbef539b39abd7590266979687d56 Mon Sep 17 00:00:00 2001
From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com>
Date: Sat, 14 Dec 2024 00:20:36 -0600
Subject: [PATCH] chore: setup for day 13
---
.../.idea/indexLayout.xml | 1 +
.../ClawContraption.Tests.csproj | 19 +++++++++++++++
13/ClawContraption/ClawContraption.csproj | 21 ++++++++++++++++
13/ClawContraption/Program.cs | 24 +++++++++++++++++++
AdventOfCode2024.sln | 16 +++++++++++++
5 files changed, 81 insertions(+)
create mode 100644 13/ClawContraption.Tests/ClawContraption.Tests.csproj
create mode 100644 13/ClawContraption/ClawContraption.csproj
create mode 100644 13/ClawContraption/Program.cs
diff --git a/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml b/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml
index 70887b5..d17f2f0 100644
--- a/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml
+++ b/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml
@@ -17,6 +17,7 @@
09/PROBLEM.md
10
12
+ 13
README.md
diff --git a/13/ClawContraption.Tests/ClawContraption.Tests.csproj b/13/ClawContraption.Tests/ClawContraption.Tests.csproj
new file mode 100644
index 0000000..a83e760
--- /dev/null
+++ b/13/ClawContraption.Tests/ClawContraption.Tests.csproj
@@ -0,0 +1,19 @@
+
+
+
+ Exe
+ net9.0
+ enable
+ enable
+ CA1822
+
+
+
+
+
+
+
+
+
+
+
diff --git a/13/ClawContraption/ClawContraption.csproj b/13/ClawContraption/ClawContraption.csproj
new file mode 100644
index 0000000..89d1400
--- /dev/null
+++ b/13/ClawContraption/ClawContraption.csproj
@@ -0,0 +1,21 @@
+
+
+
+ Exe
+ net9.0
+ enable
+ enable
+ CA1822
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
diff --git a/13/ClawContraption/Program.cs b/13/ClawContraption/Program.cs
new file mode 100644
index 0000000..5f94bf8
--- /dev/null
+++ b/13/ClawContraption/Program.cs
@@ -0,0 +1,24 @@
+using System.Diagnostics;
+
+if (args.Length is 0)
+{
+ Console.WriteLine("Please provide a path to the input file.");
+ return;
+}
+
+if (File.Exists(args[0]) is false)
+{
+ Console.WriteLine("The provided file does not exist.");
+ return;
+}
+
+var isPart2 = args.Length is 2 && args[1] is "part2";
+var input = await File.ReadAllLinesAsync(args[0]);
+
+var stopwatch = new Stopwatch();
+stopwatch.Start();
+
+// TODO: Implement solution
+
+stopwatch.Stop();
+Console.WriteLine($". ({stopwatch.ElapsedMilliseconds}ms)");
\ No newline at end of file
diff --git a/AdventOfCode2024.sln b/AdventOfCode2024.sln
index 3fc5af8..c970370 100644
--- a/AdventOfCode2024.sln
+++ b/AdventOfCode2024.sln
@@ -94,6 +94,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GardenGroups", "12\GardenGr
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GardenGroups.Tests", "12\GardenGroups.Tests\GardenGroups.Tests.csproj", "{0214851E-4415-4966-92D8-46809BD13721}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "13", "13", "{D7E6B364-455D-4CA4-AB45-93A320DBEBD6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClawContraption", "13\ClawContraption\ClawContraption.csproj", "{9FA6ACDA-8709-4CEC-A625-98952314F3F4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClawContraption.Tests", "13\ClawContraption.Tests\ClawContraption.Tests.csproj", "{EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -199,6 +205,14 @@ Global
{0214851E-4415-4966-92D8-46809BD13721}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0214851E-4415-4966-92D8-46809BD13721}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0214851E-4415-4966-92D8-46809BD13721}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9FA6ACDA-8709-4CEC-A625-98952314F3F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9FA6ACDA-8709-4CEC-A625-98952314F3F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9FA6ACDA-8709-4CEC-A625-98952314F3F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9FA6ACDA-8709-4CEC-A625-98952314F3F4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB}
@@ -225,5 +239,7 @@ Global
{47276FDB-9A8C-467F-991F-C57AB22DF2B5} = {F2904315-B827-476F-8CDE-99D2EF115F0A}
{9F285A6D-27CD-4D5A-AF2B-6C4FCC9F934C} = {8700A6AE-B77C-4B5B-AD15-6E285D43EC78}
{0214851E-4415-4966-92D8-46809BD13721} = {8700A6AE-B77C-4B5B-AD15-6E285D43EC78}
+ {9FA6ACDA-8709-4CEC-A625-98952314F3F4} = {D7E6B364-455D-4CA4-AB45-93A320DBEBD6}
+ {EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261} = {D7E6B364-455D-4CA4-AB45-93A320DBEBD6}
EndGlobalSection
EndGlobal