If player 1 picks paper and player 2 picks paper
“Player 1 scissors-count”+1 “Player 2 scissors-count”+1 “Tie-count” +1
The score for player 1 is “player 1 win-count”The score for player 2 is “player 2 win-count”.The rock count for player 1 is“Player 1 rock-count”The scissors count for player 1 is “Player 1 scissors-count” The paper count for player 1 is “Player 1 paper-count”. The rock count for player 2 is “Player 2 rock-count”.The scissors count for player 2 is “Player 2 scissors-count”. The paper count for player 2 is “Player 2 paper-count”. The number of ties is “Tie-count”
If player 1 picks scissors and player 2 picks scissors
If “player 2 win-count” is less than n
The winner is player 2 !
If player 1 picks scissors and player 2 picks paper
Players determine n wins decided the winner
If player 1 picks rock and player 2 picks paper
If player 1 picks paper and player 2 picks scissors
Each players pick a hand gestures at the same time
End
If “player 1 win-count” is less than n
The winner is player 1 !
If player 1 picks rock and player 2 picks scissors
Start
If player 1 picks paper and player 2 picks rock
If player 1 picks rock and player 2 picks rock
If player 1 picks scissors and player 2 picks rock