mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-10 06:40:47 +00:00
11 lines
144 B
Go
11 lines
144 B
Go
package one
|
|
|
|
func neighbours(p point) [4]point {
|
|
return [4]point{
|
|
{p.x, p.y - 1},
|
|
{p.x + 1, p.y},
|
|
{p.x, p.y + 1},
|
|
{p.x - 1, p.y},
|
|
}
|
|
}
|