HTML and CSS Reference
Figure 6-10. Video puzzle
Setting up the game
To start, we are going to set up some variables that will define the game's playfield. Here is a
rundown of the variables and how they will be used:
The numbers of rows in the grid of puzzle pieces.
The number of columns in the grid of puzzle pieces.
The space, in pixels, between each column.
The space, in pixels, between each row.