chore: setup for day 11

This commit is contained in:
Stevan Freeborn
2024-12-11 12:29:33 -06:00
parent 0cb78ca2d1
commit 9862f894dd
5 changed files with 86 additions and 0 deletions
+2
View File
@@ -13,6 +13,8 @@
<Path>05/PROBLEM.md</Path> <Path>05/PROBLEM.md</Path>
<Path>06</Path> <Path>06</Path>
<Path>08</Path> <Path>08</Path>
<Path>09/INPUT.txt</Path>
<Path>09/PROBLEM.md</Path>
<Path>10</Path> <Path>10</Path>
<Path>README.md</Path> <Path>README.md</Path>
</explicitIncludes> </explicitIncludes>
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoWarn>CA1822</NoWarn>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\PlutonianPebbles\PlutonianPebbles.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="TUnit" Version="0.4.99" />
</ItemGroup>
</Project>
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoWarn>CA1822</NoWarn>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>
<ItemGroup>
<Content Include="..\INPUT.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
+24
View File
@@ -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)");
+20
View File
@@ -78,6 +78,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoofIt", "10\HoofIt\HoofIt.
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoofIt.Tests", "10\HoofIt.Tests\HoofIt.Tests.csproj", "{2FACCE14-0E91-4FAA-9105-711A2B4428C3}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoofIt.Tests", "10\HoofIt.Tests\HoofIt.Tests.csproj", "{2FACCE14-0E91-4FAA-9105-711A2B4428C3}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "11", "11", "{F2904315-B827-476F-8CDE-99D2EF115F0A}"
ProjectSection(SolutionItems) = preProject
11\INPUT.txt = 11\INPUT.txt
11\PROBLEM.md = 11\PROBLEM.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlutonianPebbles", "11\PlutonianPebbles\PlutonianPebbles.csproj", "{D5FB6D59-FD68-4186-AE98-585B62EF1E4E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlutonianPebbles.Tests", "11\PlutonianPebbles.Tests\PlutonianPebbles.Tests.csproj", "{47276FDB-9A8C-467F-991F-C57AB22DF2B5}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -167,6 +177,14 @@ Global
{2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Debug|Any CPU.Build.0 = Debug|Any CPU {2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Release|Any CPU.ActiveCfg = Release|Any CPU {2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Release|Any CPU.Build.0 = Release|Any CPU {2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Release|Any CPU.Build.0 = Release|Any CPU
{D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Release|Any CPU.Build.0 = Release|Any CPU
{47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB} {1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB}
@@ -189,5 +207,7 @@ Global
{9A7AAC2C-A23B-4FFE-8B2B-93E204904866} = {2971DA3F-AD59-4BE1-A860-4F1B60BCB771} {9A7AAC2C-A23B-4FFE-8B2B-93E204904866} = {2971DA3F-AD59-4BE1-A860-4F1B60BCB771}
{5C4EC29A-3297-4D53-95EF-80800F3AF68A} = {7AB34145-87D1-4BB5-AF9C-E0239F8BE1DB} {5C4EC29A-3297-4D53-95EF-80800F3AF68A} = {7AB34145-87D1-4BB5-AF9C-E0239F8BE1DB}
{2FACCE14-0E91-4FAA-9105-711A2B4428C3} = {7AB34145-87D1-4BB5-AF9C-E0239F8BE1DB} {2FACCE14-0E91-4FAA-9105-711A2B4428C3} = {7AB34145-87D1-4BB5-AF9C-E0239F8BE1DB}
{D5FB6D59-FD68-4186-AE98-585B62EF1E4E} = {F2904315-B827-476F-8CDE-99D2EF115F0A}
{47276FDB-9A8C-467F-991F-C57AB22DF2B5} = {F2904315-B827-476F-8CDE-99D2EF115F0A}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal