Example 1
Byte walks along and must turn up at the corner. How does it know when?
- Each round, move forward, then check: is there a path to the left?
- Along the bottom, the answer is no, so Byte keeps going.
- At the corner, yes: turn left. Then it walks up to the star.
Answer: repeat until ⭐: move forward; if path to the left: turn left