chore: setup for day 16
This commit is contained in:
@@ -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="..\ReindeerMaze\ReindeerMaze.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="TUnit" Version="0.5.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -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)");
|
||||
@@ -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>
|
||||
@@ -116,6 +116,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WarehouseWoes", "15\Warehou
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WarehouseWoes.Tests", "15\WarehouseWoes.Tests\WarehouseWoes.Tests.csproj", "{055CE647-AEFA-4501-B518-D16FF400E3D0}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "16", "16", "{C50481FF-1766-4C51-BEE3-91BEC5642818}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReindeerMaze", "16\ReindeerMaze\ReindeerMaze.csproj", "{5610FB67-037B-4C87-8D5D-E86D9D7DDB51}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReindeerMaze.Tests", "16\ReindeerMaze.Tests\ReindeerMaze.Tests.csproj", "{F09B818A-200E-4456-A853-D2F01EB46EEF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -245,6 +251,14 @@ Global
|
||||
{055CE647-AEFA-4501-B518-D16FF400E3D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{055CE647-AEFA-4501-B518-D16FF400E3D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{055CE647-AEFA-4501-B518-D16FF400E3D0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5610FB67-037B-4C87-8D5D-E86D9D7DDB51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5610FB67-037B-4C87-8D5D-E86D9D7DDB51}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5610FB67-037B-4C87-8D5D-E86D9D7DDB51}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5610FB67-037B-4C87-8D5D-E86D9D7DDB51}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F09B818A-200E-4456-A853-D2F01EB46EEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F09B818A-200E-4456-A853-D2F01EB46EEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F09B818A-200E-4456-A853-D2F01EB46EEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F09B818A-200E-4456-A853-D2F01EB46EEF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB}
|
||||
@@ -277,5 +291,7 @@ Global
|
||||
{04FB2527-CCC9-4B4A-AF31-B07D553728DC} = {16AB207E-384E-4580-A134-96650AA0610F}
|
||||
{5A8E58BA-698D-47B0-89AB-74A651DDA0EE} = {4FDDAE22-D617-47B7-AF61-35178EA7F576}
|
||||
{055CE647-AEFA-4501-B518-D16FF400E3D0} = {4FDDAE22-D617-47B7-AF61-35178EA7F576}
|
||||
{5610FB67-037B-4C87-8D5D-E86D9D7DDB51} = {C50481FF-1766-4C51-BEE3-91BEC5642818}
|
||||
{F09B818A-200E-4456-A853-D2F01EB46EEF} = {C50481FF-1766-4C51-BEE3-91BEC5642818}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Reference in New Issue
Block a user