Deviopath › Karel

Walk to the Wall

Medium · While Loops

Walk Karel to the end of the row and put a ball there.

Your code runs in 3 worlds with different lengths, so you can not count the steps. Use a while loop with frontIsClear() to keep moving until Karel reaches the wall.

Next: Fill the Row