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.
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 . 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.- 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.
- While using these keys, if you want to move the empty box just left then press A.
- Similarly , You can move the empty box up, right bottom by pressing W, D and S respectively.
- In case you want to restart the Game all over, just press the 'R' key.
- In case you want to exit the game, just press 'X' key .
- While you are playing the game, the number of the moves will always be displayed at the top of the game screen.
- Proper Indentation and comments have been made.
- 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.
- There is an option for UNDO and REDO a move.
- There are options for the different levels of the games like beginners , intermediate and advanced.
- 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.
- 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!
Hope you like it! Happy Gaming. :)