4) 601 - Rock, Paper, Scissors (v1)
Problem type
Problem type
What do you know?
nouns
knouns
choices
1) rock
2) paper
3) scissors
game results
win
lose
draw
rules
rock beats scissors
scissors beats paper
paper beats rock
unknouns
Input:
user's choice
Process:
computer's choice
game result
Output:
computer's choice
game result
Use case(s)
Primary
1) Welcome ...
1) Display title of program
2) Display instructions
2) Input: choice from the user/player
1) Prompt user for input
2) "Read" user/player input
assume user is entering
a valid input value
3) Process: the input
1) Computer generates its choice
2) Indentify winner
4) Output results
1) Display computer's choice
2) Display win, lose or draw
5) THE END ...
What don't you know?
randomize computer choice
Subtopic
What assumptions are you making?
user knows how to play RPS
single play-no loop
using a traditional die
Solution criteria
Console-based
program
write no functions
if/else if/else logic only
Root cause analysis
Impact analysis
Person
Impact
Six serving men
Analogies
What is it like?
Be the problem
Insight