Please enable JavaScript.
Coggle requires JavaScript to display documents.
Scissors, paper, rock, lizard, spock - Coggle Diagram
Scissors, paper, rock, lizard, spock
-
-
-
-
User input option
Scissors, paper, rock, lizard, Spock or stop
-
Display round results
Computers choice, win or loss, running total
-
User types "stop"
Program displays "Thank you for playing, your results will be saved"
-
-
Safety loop
If the user enters an invalid option the program will print "That is not a valid option, please re-enter your response" and return to the beginning of the loop.
-
Check there is a file under the users name, if not ask them to re-enter name
Program accounts for all 25 outcomes (10 wins, 10 losses and 5 tie outcomes)