You may recall the popular game where 15 tiles are arranged in a four-by-four layout, and one space is open. The player’s objective is to arrange the numbered tiles in numerical sequence from 1 to 15, by moving tiles into the open space.
Write a program that uses a 2D array to play the 15-game. The game must include the following features:
Step 1: Design the screen for the game. Consider all the buttons a user needs to play. Draw a rough sketch of the screen layout, labeling each object.
Step 2: Write algorithms to perform each of the actions the user performs. One algorithm per button/event is required.
Step 3: Create an instruction sheet for the player. Type up user instructions, the capabilities of the hardware required, etc. About a page should do it.
Step 1: Write and test the program. Write and test as you gol don’t write huge chunks of code, then try to debug it.
Step 2: Hand in the source code, and the manuals/instructions sheet for marks.