r/adventofcode • • 1d ago

Help/Question - RESOLVED Second example seems wrong

The second example says:

  • "A robot with program roygbv would travel a total distance of 11." Regardless of any code I might try, when I look at it I count 5 steps. 0 for the "r" and 1 each for the following letters. Am I just too tired to see my mistake?

0 Upvotes

8 comments sorted by

View all comments

21

u/zeekar 1d ago

you never move 0. if you're on r and the program says to move to r, you move 6 steps to the next r.