Pile to Row
Hard · Variables
Karel is standing on a pile of balls. Count the pile, then put one ball on each of the next squares to the right: as many squares as there are balls in the pile.
The pile must still be there at the end. Your code runs in several worlds, and in one of them the pile is empty.
Hint: count the balls with a variable while you pick them up, then put them back.
Next: Raindrops