Shift the Whole Pile
Medium · While Loops
Karel is standing on a pile of balls. Move the whole pile one square to the east, one ball at a time, and finish on the new pile.
The piles have a different number of balls in each world, so repeat while there are still balls on the starting square.
Next: Fill the Gaps