Representation of the Frame
We need 16 variables, one to represent the tile at each position in the frame.
We could use the declaration:
to get variables puz[0], . . ., puz[15], but this is unwieldy and unnatural.
Rule of Thumb. Unless there is a compelling reason algorithmic reason to do otherwise, use data that is structured similarly to the physical device being simulated.
We use a two-dimensional array.