Game Description and Initial Setup

Learn the gameplay and set up the primary window for the game.

Description

Now we will create the Sliding Tiles game. A photo will be divided into 16 tiles in 4 rows and 4 columns, with the bottom right corner missing. The tiles will then be scrambled and you will be challenged to slide the tiles back into their original positions. Once all the tiles are in the correct order, the missing tile from the bottom right corner will also be displayed.

To slide a tile, you must click a tile next to the empty space. Doing so will slide the clicked tile into that empty space.

Here is a screenshot of the Sliding Tiles program:

Get hands-on with 1200+ tech skills courses.