feat: solved day 16 part 2

This commit is contained in:
Stevan Freeborn
2024-12-17 22:58:51 -06:00
parent 5b7dbd5b1d
commit 655b1ffd8f
8 changed files with 209 additions and 88 deletions
+9
View File
@@ -0,0 +1,9 @@
namespace ReindeerMaze;
record Position(int X, int Y)
{
public Position GetNextPosition(Direction direction)
{
return new(X + direction.Xd, Y + direction.Yd);
}
}