aoc2024/day-08/internal/two/antenna.go

21 lines
297 B
Go
Raw Permalink Normal View History

2024-12-08 19:55:23 +00:00
package two
type coords struct {
x int
y int
}
func newCoords(x, y int) coords {
return coords{x, y}
}
type antenna struct {
coords
identifier rune
}
func newAntenna(x, y int, identifier rune) antenna {
coords := newCoords(x, y)
return antenna{coords: coords, identifier: identifier}
}