You are playing a game on the following 4x4 grid. It contains balls, stars, empty cells, walls (solid blue squares) and target cells (T). Each turn you can slide all the balls and all the stars into one of four directions: left, up, right or down. An object will continue sliding along a direction until it hits another object (including walls) or the boundary of the grid. Walls do not move. Can you get the balls to finish on the target cells?
The sequence needed to put the balls in their place is:
I don't have any fancy animation thingy to show my result, but after checking several times on my notebook, I believe it's correct.
To get the balls into position, having all three stars below the balls was needed. To do so, switching the balls from a horizontal position (both on the same row for most of the moves) to a horizontal one (both on the same column for most moves), or separating them altogether, to then slowly pass the stars on the lower part of the puzzle, while the balls take their place in the upper part.