Deviopath › Karel

Mind the Gap

Medium · While Loops

The row starts with a line of balls, but one square is missing. Walk over the balls, stop on the first empty square and put a ball there to fill the gap.

There may be more balls after the gap. Leave them alone: Karel should stay on the square it just filled.

Next: Clean Up