mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 14:20:48 +00:00
upd function name
This commit is contained in:
parent
1f349178ed
commit
540339b42d
@ -64,7 +64,7 @@ func analyzeSides(kind rune, graph *graph, path path) int {
|
||||
corners++
|
||||
}
|
||||
|
||||
corners += isInnerCorner(graph, current, ns)
|
||||
corners += numInnerCorner(graph, current, ns)
|
||||
}
|
||||
|
||||
log.Debugf("this path has %d corners", corners)
|
||||
@ -98,7 +98,7 @@ func isCorner(graph *graph, current, p, q point) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func isInnerCorner(graph *graph, current point, ns [4]point) int {
|
||||
func numInnerCorner(graph *graph, current point, ns [4]point) int {
|
||||
var corners int
|
||||
|
||||
if !graph.isOutOfBounds(ns[N]) && !graph.isOutOfBounds(ns[E]) {
|
||||
|
Loading…
Reference in New Issue
Block a user