mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2025-04-20 03:03:47 +01:00
Compare commits
No commits in common. "af3e48338255d6675e30fb55bf3d5bad7b7015b9" and "cc6a0942fb606a80f68e8ce4a5fbc87d9d40a684" have entirely different histories.
af3e483382
...
cc6a0942fb
@ -92,7 +92,7 @@ func mapPoints(lines []string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// walk moves along the pipes storing points that mark loop locations
|
// walk moves along the pipes storing poinst that mark loop locations
|
||||||
// it also keeps a track of last two moves
|
// it also keeps a track of last two moves
|
||||||
// returns the number of steps to traverse all pipes
|
// returns the number of steps to traverse all pipes
|
||||||
func walk(tracker tracker) int {
|
func walk(tracker tracker) int {
|
||||||
|
@ -44,7 +44,6 @@ func shortestRoute(a, b coords, factor int) int {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if row >= b.Y && row < a.Y {
|
if row >= b.Y && row < a.Y {
|
||||||
log.Debug("empty row, adding to vert")
|
|
||||||
vert += (factor - 1)
|
vert += (factor - 1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user