feat: setup for day 5
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
@@ -17,4 +16,5 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace CeresSearch;
|
||||
namespace CeresSearch;
|
||||
|
||||
record Direction(int XOffset, int YOffset)
|
||||
{
|
||||
@@ -110,7 +108,7 @@ class Grid(string[] input)
|
||||
return IsValidXmas(xmasMap);
|
||||
}
|
||||
|
||||
private bool IsValidXmas(Dictionary<Direction, char> map)
|
||||
private static bool IsValidXmas(Dictionary<Direction, char> map)
|
||||
{
|
||||
var upToTheRight = map[Direction.UpToTheRight];
|
||||
var downToTheLeft = map[Direction.DownToTheLeft];
|
||||
|
||||
Reference in New Issue
Block a user