Please enable JavaScript.
Coggle requires JavaScript to display documents.
Scissors, paper, rock, lizard, spock - Coggle Diagram
Scissors, paper, rock, lizard, spock
What have i been asked to do?
I am being asked to create a program which plays the game rock, paper, scissors, lizard, Spock.
The program will ask the user to select one of five options
The computer will randomly choose one of the five options
The program will display what the computer chose.
The program will have to keep track of wins and losses.
The program will display whether the user won or not.
The program must continue running until the user tells it to stop.
The program will keep track of individuals scores.
The program will ask the user to enter their name before beginning.
When the user enters their name at the start, the program will load their running total from last time.
The program has to be able to read/write files.
The TUI has to be user friendly and easy to understand.
What are the functional requirements?
The TUI must allow the user to enter one of the five options (rock, paper, scissors, lizard, Spock).
The program must make the computer randomly choose one of the five options.
The TUI must show the option the computer chose.
The TUI must print what option the computer chose.
The TUI must display whether the user won or not.
The program must add the win/loss to the running total and print it to the screen after every round
The program must keep repeating the loop until the user tells it to stop.
When the program is told to stop, it must save that users results to a file.
At the start of the game, the TUI must ask the user to enter their name and create a file for that user.
What use-ability features will be implemented?
The program must start with printing the words words “Welcome to Scissors, paper, rock, lizard, Spock, please enter your name below to load existing data or create new save:”.
After saying welcome, the program will print the instructions to the game.
The instructions will be succinct in order to not overload the user
When the user is prompted to enter one of the five options, they will be given a list so they know what the options are.
When the user enters the option they want, they will be asked if they are sure, so they have the option to go back if they want to change their choice.
Once the program has printed the running total, in order to keep program clear to the user, they will be explained to that they can either tell the program to stop or enter another option.
When the user tells the program to stop, it will thank the user for playing and tell them not quit the program too quickly so no data is lost.
At the end of the program it will display “Thank you for playing, your wins and losses will be saved under your name for next time you play, please give the program a bit of time to save to avoid data loss."
To avoid any errors due to incorrect answers, the program will have a safety loop that will catch any errors and ask the user to re-enter their answer. It will also provide a list of valid options so there is a lower chance of an error occurring.