diff --git a/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml b/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml index d17f2f0..2205e4d 100644 --- a/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml +++ b/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml @@ -18,6 +18,7 @@ 10 12 13 + 14 README.md diff --git a/14/RestroomRedoubt.Tests/RestroomRedoubt.Tests.csproj b/14/RestroomRedoubt.Tests/RestroomRedoubt.Tests.csproj new file mode 100644 index 0000000..0ce7445 --- /dev/null +++ b/14/RestroomRedoubt.Tests/RestroomRedoubt.Tests.csproj @@ -0,0 +1,19 @@ + + + + Exe + net9.0 + enable + enable + CA1822 + + + + + + + + + + + diff --git a/14/RestroomRedoubt/Program.cs b/14/RestroomRedoubt/Program.cs new file mode 100644 index 0000000..5f94bf8 --- /dev/null +++ b/14/RestroomRedoubt/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/14/RestroomRedoubt/RestroomRedoubt.csproj b/14/RestroomRedoubt/RestroomRedoubt.csproj new file mode 100644 index 0000000..89d1400 --- /dev/null +++ b/14/RestroomRedoubt/RestroomRedoubt.csproj @@ -0,0 +1,21 @@ + + + + Exe + net9.0 + enable + enable + CA1822 + + + + + + + + + PreserveNewest + + + + diff --git a/AdventOfCode2024.sln b/AdventOfCode2024.sln index c970370..a9a059f 100644 --- a/AdventOfCode2024.sln +++ b/AdventOfCode2024.sln @@ -100,6 +100,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClawContraption", "13\ClawC EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClawContraption.Tests", "13\ClawContraption.Tests\ClawContraption.Tests.csproj", "{EFA04F8A-F1F3-4F7E-8A06-91CF1DB82261}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "14", "14", "{16AB207E-384E-4580-A134-96650AA0610F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestroomRedoubt", "14\RestroomRedoubt\RestroomRedoubt.csproj", "{456447AF-D3A2-4E18-83B2-9354B5278BF4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestroomRedoubt.Tests", "14\RestroomRedoubt.Tests\RestroomRedoubt.Tests.csproj", "{04FB2527-CCC9-4B4A-AF31-B07D553728DC}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -213,6 +219,14 @@ Global {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 + {456447AF-D3A2-4E18-83B2-9354B5278BF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {456447AF-D3A2-4E18-83B2-9354B5278BF4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {456447AF-D3A2-4E18-83B2-9354B5278BF4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {456447AF-D3A2-4E18-83B2-9354B5278BF4}.Release|Any CPU.Build.0 = Release|Any CPU + {04FB2527-CCC9-4B4A-AF31-B07D553728DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {04FB2527-CCC9-4B4A-AF31-B07D553728DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {04FB2527-CCC9-4B4A-AF31-B07D553728DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {04FB2527-CCC9-4B4A-AF31-B07D553728DC}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB} @@ -241,5 +255,7 @@ Global {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} + {456447AF-D3A2-4E18-83B2-9354B5278BF4} = {16AB207E-384E-4580-A134-96650AA0610F} + {04FB2527-CCC9-4B4A-AF31-B07D553728DC} = {16AB207E-384E-4580-A134-96650AA0610F} EndGlobalSection EndGlobal