Professional Documents
Culture Documents
Start: Rock, Paper, Scissors - Starting Game
Start: Rock, Paper, Scissors - Starting Game
int computer_score=0
player_score=0
Reset
If player_score ==5
If computer_score ==5
NO NO YES
YES
DRAW
YES NO
If computer’s choice ==
ROCK
If computer’s choice == If computer’s choice ==
NO PAPER ROCK
YES
YES
NO
YES NO
DRAW
DRAW computer_score
If computer’s choice ==
PAPER ++
If computer’s choice ==
YES SCISSORS player_score++
YES
computer_score
NO
++
computer_score
NO
player_score++ ++
player_score++