Sample Outcomes for A06

Return to assignment description

The following are some of the possible outcomes of running the RockPaperScissors program for A06.

Note that input is represented by blue text with a grey at the end. The indicates a place where the user presses the enter key.

Note also that the program has a random number generator in it, so the computer's choice (and thus the outcomes of the games (win/loss/tie)) will probably be different for you.


Sample with only valid input
Rock, Paper, Scissors Game -------------------------- This program plays Rock, Paper, Scissors with the user until they enter the EXIT command. Author: Nikita Neveditsin and Mark Young Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Scissors You Win Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Paper Computer chose: Paper There is a Tie Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Scissors Computer chose: Paper You Win Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Paper You Lose Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Paper Computer chose: Paper There is a Tie After 5 games: Wins: 2 Losses: 1 Ties: 2 Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Paper Computer chose: Scissors You Lose Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Scissors You Win Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Scissors You Win Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Paper You Lose Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Scissors You Win After 10 games: Wins: 5 Losses: 3 Ties: 2 Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Rock Computer chose: Scissors You Win Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Exit You played 11 games, and your record is: Wins: 6 Losses: 3 Ties: 2 Goodbye!
Sample with some invalid input
Rock, Paper, Scissors Game -------------------------- This program plays Rock, Paper, Scissors with the user until they enter the EXIT command. Author: Nikita Neveditsin and Mark Young Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Jar Invalid choice. Enter Rock, Paper, Scissors or Exit to end the game: Can Invalid choice. Enter Rock, Paper, Scissors or Exit to end the game: Rock Computer chose: Paper You Lose Enter your choice (Rock/Paper/Scissors or type Exit to end the game): Caesar Invalid choice. Enter Rock, Paper, Scissors or Exit to end the game: Lizard Invalid choice. Enter Rock, Paper, Scissors or Exit to end the game: Spock Invalid choice. Enter Rock, Paper, Scissors or Exit to end the game: Exit You played 1 games, and your record is: Wins: 0 Losses: 1 Ties: 0 Goodbye!

Return to assignment description