Find the Middle
Hard · Variables
Put a ball on the middle square of the bottom row and finish there. The row always has an odd number of squares, so there is exactly one middle.
Your code runs in several worlds with different widths. Use a variable to count how far it is to the wall, then use that number to find the way back to the middle.
Next: Pile to Row