aoc2024/day-21/internal/pad/move.go

13 lines
134 B
Go

package pad
type move struct {
x, y int
}
func newMove(x1, x2, y1, y2 int) *move {
return &move{
x: x2 - x1,
y: y2 - y1,
}
}