Solution to Sokoban level 40

Here's how to approach level 40:

  • Push the top-right block right by 1.
  • On the top row, push the 2nd block from the left down by 1.
  • Push the middle block to the right by 1.
  • Push the left block down into the bottom-right corner.

You should now have three rows of two blocks each in the upper portion of the puzzle. Keep pushing these blocks left and down, filling the right row first. Then take the top block in the middle, move it left and down, and finally move the remaining blocks up, left, and down to fill the remaining spaces.