Files
advent-of-code-2024/16/ReindeerMaze/Position.cs
T

9 lines
176 B
C#
Raw Normal View History

2024-12-17 22:58:51 -06:00
namespace ReindeerMaze;
record Position(int X, int Y)
{
public Position GetNextPosition(Direction direction)
{
return new(X + direction.Xd, Y + direction.Yd);
}
}