electrofriends.com  

...bringing innovative minds together       | HOME | ABOUT US | ARTICLES | SOURCE CODES | PROJECTS | EBOOKS |  FEEDBACK |  

THE SHUFFLE GAME

 

           If you think playing a game as this is a child's play, try a hand on this and think again. Its all about how you plan on making your next move. All the best, have fun.

          Download 'The shuffle game.

            To download the source code of  'The Shuffle Game' click on the link given below.

          Download source code.
                                                                                  

   

               Here is a simple game developed in C graphics which is called 'The Shuffle Game'. We believe u have already played many of such games where in you need to arrange scrambled pieces of a picture, alphabets or numbers. In the present program you have been given a matrix of 16 squares of which 15 are assigned with 15 different numbers and 1 is left out blank (empty space for movement of the remaining boxes) which are all shuffled. All you have to do is arrange these numbers in order as shown in the picture given below. The number of moves and the number that have been arranged by you in the proper position will be continuously displayed on the screen.  The controls  are as given below.

 Controls:
             You can move the boxes by using the arrow keys on your keyboard or by simply clicking on the box which you want to move into the empty space. While using the arrow keys, if you want to move the box left to the empty space just hit the left arrow button. Similarly you can move the boxes on the top, bottom or right of the empty box by hitting the up, down or right arrows respectively. In case you want to restart the game all over again just click the 'RESTART' button or if you want to quit the game, all you have to do is to click the 'EXIT' button on the screen.
      

1 2 3 4
5 6 7 8
9 10 11 12
13 14 15  

              You have seen it, you have played it, you have seen the source code. Now its your turn to show us how creative your thinking is!! We hope you have got all the ideas that you need to build such a game with C graphic. If you are successful do send us a copy of the game. We will see through that your name comes on this site. You can also send in your articles or anything that might help all the students in their academic studies. To submit your work simply mail it to webmaster@electrofriends.com.

by                                          
 
Ranjith Yadapadithaya          
ranjith@electrofriends.com      

 

 

 | HOME | ABOUT US | ARTICLES |  SOURCE CODES | PROJECTS |  SITEMAP |  EBOOKS | FEEDBACK |   



  Copyrights © 2005-2007 electrofriends.com, All rights reserved. webmaster@electrofriends.com