I have uploaded the file

1 answer below »
I have uploaded the file
Answered Same DayAug 16, 2021

Answer To: I have uploaded the file

Neha answered on Aug 23 2021
168 Votes
43349/activity diagram.png
43349/Report.docx
C++
Student Name:
Student Id:
Table of contents
1. Introduction
1.1 Main Objective
1.2 A reward for fulfilling objective
1.3 A consequence of failing the objective
1.4 Challenges for players
2. GUI
2.1 Welcome Screen
2.2 Instruction Screen
2.3 Game Screen
2.4 Result Screen
3. Reason to make this game
4. Classes
5. Milestones
6. Activity Diagram for Game
1.Introduction
1.1Main Objective
This is very familiar game for all of us. We all mus
t have played this game and it is very simple. In this game basically you have nine spots and what you should do is to make a straight line in those spots. We can use X or O. If we choose X, then the other person will have O but in this case the opponent is a computer system. The system will give you fours options. You can choose X as your symbol or O as your symbol. Few lines are also written to guide if you are a beginner. Lastly if you don’t want to play this game then you can exit. You will have spots starting from (1 to 9). If you enter a spot number, then computer will make his entry and then these two spots will be locked, and changes can’t be made. Once all the spots are filled the system will generate the result in the favour of whosoever is able to make a straight line in any form. If all the spots are filled and still there is not straight line then the match will be declared as “Draw”. In this case user can start the game again and try it multiple times to win.
1.2Reward for fulfilling objective
If the user can get a straight line whether it is horizontal, vertical or diagonal then he/she will be declared as the winner and computer lose the game. Currently there are no levels as this is just a beginning of my coding. If the user wins then he will be declared as an Advanced Player and if he gets the match drawn, then system will address him as Good Player. But if he loses the game then he will be a loser.
1.3Consequences of failing the objective
There are no such consequences at this level in this game. If the user fails to get a straight line, then he can restart the game. User can play multiple times and enjoy the game. Failing the game means the user is not able to guess the right spots on the board to defeat computer. Losing just means restarting the game again. Currently there is no such criteria of number of chances, but I’ll try to add some more features which will make the game more interesting.
1.4Challenges for the players
This is a game for two players. But for now, I have fixed one player which is a computer. Only one player can play this game at a time. The opponent for the player is computer. A player can get the help of his/her friend to guess the spot and win the game in less time.
2.GUI
2.1Welcome Screen
Welcome is the screen which user will see as the game starts. It contains two straight lines designed with “*” key. All the options available for the user are placed between the two lines. First option allows the user to chose X as his symbol to play the game and computer will automatically get O. If the user chooses second option then he will get O as his symbol and computer will play with X. Third option will provide a set of instructions which user can follow to understand the process of this game. If the user doesn’t want to continue then he can choose fourth option and the game will stop.
2.2 Instruction Screen
This screen will come once the user selects 3 as his option. It contains rules and instructions which can be used to play the game and win it. It shows the spot numbers which will allow the user to fill the spot properly. User can enter ‘Y’ to continue which is case insensitive. These instructions may change as the game becomes complex.
2.3 Main Game Screen
The user will enter the spot number and system will place the value at that place. The chance will be given to computer and it will place the value accordingly. When all the 9 spots get filled system will check it and declare the winner.
2.4 Result Screen
I have not planned to show the result on a different screen. Once the game is completed the system will generate the result just below the board. This thing will help the user to confirm it by checking the board again.
3. The reason I chose this game
First, I thought of developing a quiz game which will help the user to develop his general knowledge. The quiz game would be useful for the user but not for me due to less coding. Then I planned for developing this game which neither too difficult nor too easy. It helped me to learn about new features that we can use in C++. This game helped me in building my coding techniques. As my understanding of C++ goes better, I’ll improve this game to increase its difficulty level.
4.Classes and Methods
I kept the coding in single class. I used multiple methods in this class. They are as follows:
· menu()- this method contains all the options available for user.
· go()- it will tell the system to move to the position.
· instructions() – it contains all the instructions required for the game.
·...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here