Posted: September 17th, 2017

Image Toy Game

 

1. Aims and Objectives
The aim of this assignment is to produce an ImageToy game. This is an electronic version of an old children’s game which re-creates a jumbled up picture by moving one piece at a time. Figure 1
shows an original image and it’s jumbled up version with one piece of the original image missing
thus creating a gap in which to shuffle individual pieces. By convention the piece at the bottom right of the original image has been removed and then the image shuffled. The image can be re-constructed by moving the mouse pointer into a piece of the shuffled image adjacent to the gap and then clicking the mouse button. This then swaps the image piece and the gap.

2. Preparatory Work

Thus assignment will make use of many of the programming techniques we discussed in the lectures such as the use of the OpenFileDialog box to read in an image and display it in a simple form, the use of the Image class to handle images and the use of event handlers to handle mouse button presses. You should read through your lecture notes once again to make sure you understand the material. Also I would suggest you make extensive use of visual programming to design your user interface.
3. Lab Work
Your program should ask the user for the number of pieces in which to shuffle the image. It should then randomly shuffle all of the pieces of the image. The number of pieces in the shuffled image, and hence the difficulty of reconstructing the image, should be left as a user choice. (Think
carefully about how to shuffle the image. Your program must be able to ‘un-shuffle’ the shuffled
image back to its original form by moving image blocks into the adjacent gap. Just randomly moving image blocks around won’t necessarily give you this!)Finally it should then allow the user to play the game by clicking on pieces to move them. Clearly, only if the user clicks on a piece adjacent to the gap should the piece be moved. Think carefully how you want to represent the shuffled image. You should certainly avoid having to store the original image and its shuffled version as separate images as this is very inefficient! To shuffle an image, you could use a Bitmap class and access individual image pixels. However, this would be extremely inefficient. Try and think of a better way of doing it.

4. Assessment
The assessment will be based on your submitted code and my assessment of your program’s functionality.
It must be written in C# programming Language.

Place your order now for a similar paper and have exceptional work written by our team of experts to guarantee you A Results

Why Choose US

6+ years experience on custom writing
80% Return Client
Urgent 2 Hrs Delivery
Your Privacy Guaranteed
Unlimited Free Revisions

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Live Chat+1-631-333-0101EmailWhatsApp