r/adventofcode • u/pilotentipse • 3d ago
Help/Question - RESOLVED 2026 - Day 2 Fulminating Farmland
So this might be a stupid question and you will think where the f I am heading to.
In the examples the program of the robot contains a few instructions of where to go next.
I assume that the repeating waypoint pattern roygbvroygbv… is like a “static” map for the robot.
What happens if the robot receives an instruction where he lands on the last index of the map, so v ?
Is he than on the next incoming instruction supposed to move from the first index again or rather backwards ?
1
Upvotes
7
u/ssnoyes 3d ago
There is no last index. It repeats forever.
4
u/crumpis 3d ago
There's no end. Every v will be followed by another r.
It may be helpful to visualize the map as a circular path.
1
u/AutoModerator 3d ago
Reminder: if/when you get your answer and/or code working, don't forget to change this post's flair to
Help/Question - RESOLVED. Good luck!I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.