Deviopath › Karel

Fill the Row

Medium · While Loops

Put a ball on every square of the bottom row, including the first and the last one.

Your code runs in 3 worlds with different widths, so use a while loop with frontIsClear() instead of counting. Karel needs one more ball than moves, so think about the last square.

Next: Up the Column