Deviopath › Karel

Stack One Up

Medium · Conditions

Some squares in the bottom row have a ball. For each of them, put a new ball on the square right above it. Squares without a ball get nothing above them.

Write a function that goes up, puts the ball and comes back down facing east. Finish at the end of the bottom row.

Next: Slide the Ball