Compare commits

..

No commits in common. "af3e48338255d6675e30fb55bf3d5bad7b7015b9" and "cc6a0942fb606a80f68e8ce4a5fbc87d9d40a684" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -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
// returns the number of steps to traverse all pipes
func walk(tracker tracker) int {

View File

@ -44,7 +44,6 @@ func shortestRoute(a, b coords, factor int) int {
}
} else {
if row >= b.Y && row < a.Y {
log.Debug("empty row, adding to vert")
vert += (factor - 1)
}
}