feat: setup for day 5

This commit is contained in:
Stevan Freeborn
2024-12-05 14:18:29 -06:00
parent 9e44721fb7
commit 61d67bfae1
14 changed files with 140 additions and 15 deletions
+2 -4
View File
@@ -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];