mohtamohit / shuffle_game

A Brain Game you might fall in love with !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CS Project | Shuffle Game

Project Motivation: This is my first project in the core computer science. The motivation for doing this project was primarily an interest in undertaking a challenging project. These were the things that were not taught much during the lecture and this made things more challenging for us. The only thought that kept us going was that the game after completion would look awesome. This brain Game would really brainstorm your mind. The project uses the library Graphics.h , exploring which gave us insights into some really basic functions of Graphics, knowledge of which would help us to explore modern graphic libraries with their backgroud exhaustively. I also extend my gratitude towards Dr. Tanima Dutta Mam and Nikhil Tripathi Sir for helping me out in this project.

About the Game

In this Game, you are assigned a matrix of 16 squares of which 15 are assigned with 15 different numbers and one is left out blank(empty space for moving the tiles) . All you have to do is to bring all the numbers at their respective indexes .

How to operate the Game ?

The main project file is saved as mainproject.cpp in the same folder of this readme file. The instructions and rules for operating the game are displayed inside that only.

Some Basic features Of this Game :

  1. You can move the tiles by using W, A, S and D, where W is analogous with Upper arrow key, A with left arrow key, S with down arrow key and D with right arrow key.
  2. While using these keys, if you want to move the empty box just left then press A.
  3. Similarly , You can move the empty box up, right bottom by pressing W, D and S respectively.
  4. In case you want to restart the Game all over, just press the 'R' key.
  5. In case you want to exit the game, just press 'X' key .
  6. While you are playing the game, the number of the moves will always be displayed at the top of the game screen.
  7. Proper Indentation and comments have been made.
  8. If the numbers are arranged correctly, before 'n' number of moves a message "Congratulations ! You win." would be displayed on the screen else "Sorry! You lost. " would be displayed on the screen.
  9. There is an option for UNDO and REDO a move.
  10. There are options for the different levels of the games like beginners , intermediate and advanced.
  11. The maximum number of moves if the player is playing the beginner Game is 999. If the player is unable to get the ideal arrangement under that limit, then the player losses the Game.12. Similarly, the maximum number of moves if the player is playing the intermediate and advanced level is 450 and 200 respectively. If the player is unable to get the ideal arrangement till then, the player losses the Game.
  12. There are more than 20 combinations/set of puzzles for this Game. On every refresh, You get a new puzzle to brainstorm your minds with!

Some Advanced Features Of this Game :

1. If a number is kept where it should be i.e. at the right position with respect to the ideal arrangement, then the color of that tile turns GREEN. 2. If the number is not at its ideal position, then the tile at which that number is lying turns YELLOW automatically. 3. Not just one move, you can use the UNDO option to UNDO unlimited number of moves as well. 4. At the beginning of the Game, there are options for the user to view the the Rules and the instructions for the Game. In addition to this, he can also view the Controls for the Game and the Shortcuts that might be useful in the game. 5. When the game is finished and the user is lost, the result is displayed with a buzz Sound. 6. At the end of the game , the user has the option to play the game again Or to simply exit the Game. 7. If the user is able to win the game, he gets the perfect score, else if he loses the Game, his score is equal to (some_number)*(the number of Green tiles at the end of the game) , where the value of the 'some_number' depends on the level of the game , the user is playing. 8. Animation has been created , with heart-hacking Graphics at the beginning of the game. The 'Loading' screen effect at the first screen is an example! 9. While giving an input, if the user inputs something that is an invalid input, a toast is displayed( i.e a message of invalid input appears, and goes by itself after a few seconds) .

Hope you like it! Happy Gaming. :)

About

A Brain Game you might fall in love with !


Languages

Language:C++ 100.0%