Fifteen Puzzle
Design and develop a 15-puzzle game, in a dynamic fashion, without using any magic constants, to allow for multiple sizes and right-to-left layout. Interactive demonstrations with different sizes and directions are shown in Figure 1, Figure 2, Figure 3, Figure 4, Figure 5, and Figure 6.