aoc2024/day-16/internal/one/node.go

25 lines
241 B
Go
Raw Permalink Normal View History

2024-12-17 01:58:33 +00:00
package one
type direction int
const (
N direction = iota
E
S
W
)
type coords struct {
x int
y int
}
type node struct {
coords
direction direction
}
func newNode(x, y int, dir direction) node {
return node{coords{x, y}, dir}
}