rename function

This commit is contained in:
onyx-and-iris 2024-12-20 23:23:53 +00:00
parent 72d329ae57
commit 3ccdd9fdf6
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ func (g *graph) isValidCheatPosition(p point.Point) bool {
slices.Contains(allowed, g.valueAt(ns[W])) && slices.Contains(allowed, g.valueAt(ns[E]))
}
func (g *graph) getConnectingpoint(dir direction, p point.Point) point.Point {
func (g *graph) getConnectingPoint(dir direction, p point.Point) point.Point {
ns := neighbours(p)
return ns[dir]

View File

@ -45,7 +45,7 @@ func Solve(buf []byte) (int, error) {
}
if graph.isValidCheatPosition(n) {
b := graph.getConnectingpoint(direction(dir), n)
b := graph.getConnectingPoint(direction(dir), n)
graph.set(n, 'X')
v1, ok := Path.Get(point)