Skip to content

Commit 96af941

Browse files
committed
yes
1 parent 647e6b8 commit 96af941

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

day09/main.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,8 @@ func MoveRope(input io.Reader, debug bool) (positionVisitedByTail int, err error
5959

6060
move := DrawGrid(head, tail, []*Point{})
6161

62-
// x := tail.X
63-
// y := tail.Y
64-
6562
Follow(head, tail)
6663

67-
// if x != tail.X || y != tail.Y { // tail moved
68-
// positionsVisited = append(positionsVisited, &Point{X: tail.X, Y: tail.Y})
69-
// positionVisitedByTail++
70-
// }
71-
7264
if _, ok := pointsVisited[tail.String()]; !ok {
7365
pointsVisited[tail.String()] = struct{}{}
7466
positionsVisited = append(positionsVisited, &Point{X: tail.X, Y: tail.Y})

0 commit comments

Comments
 (0)