feat: solved day 16 part 2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user