Compare commits

..

2 Commits

Author SHA1 Message Date
af3e483382 typo 2023-12-11 18:58:13 +00:00
f5ad468db5 add debug print 2023-12-11 18:57:25 +00:00
2 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func mapPoints(lines []string) {
} }
} }
// walk moves along the pipes storing poinst that mark loop locations // walk moves along the pipes storing points 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 {

View File

@ -44,6 +44,7 @@ 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)
} }
} }