Dear friends I’m rather new to Java but determined to learn. I’m trying to make a program that solves a sliding puzzle. A sliding blocks puzzle consists of a number of rectangular blocks that fit into a tray. The goal is to slide the blocks, without lifting any out of the tray, until achieving a certain configuration.
My first task is to create a tray, which I have done, but I don’t know how to fit the blocks on the tray. I want to create something like the picture below (see the textual representation)