Two runs of the Compete Lab 4 Solution. User input is shown in blue.
$ python rockpaperscissors.py
Enter your name: Tia
How may wins do you want to play to? 2
Let's see who can win 2 games of Rock-Paper-Scissors first...good luck!
Next Round:
Pick one of rock, paper or scissors: rock
Tia picks rock and Computer picks rock
A Tie
-----------------------------------
Tia: 0 computer: 0
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: paper
Tia picks paper and Computer picks paper
A Tie
-----------------------------------
Tia: 0 computer: 0
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: paper
Tia picks paper and Computer picks scissors
Computer wins!
-----------------------------------
Tia: 0 computer: 1
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: scissors
Tia picks scissors and Computer picks scissors
A Tie
-----------------------------------
Tia: 0 computer: 1
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: rock
Tia picks rock and Computer picks paper
Computer wins!
-----------------------------------
Tia: 0 computer: 2
-----------------------------------
Computer beats Tia:
wins 2 games in 5 rounds of play
$ python rockpaperscissors.py
Enter your name: Ruth
How may wins do you want to play to? 3
Let's see who can win 3 games of Rock-Paper-Scissors first...good luck!
Next Round:
Pick one of rock, paper or scissors: rock
Ruth picks rock and Computer picks paper
Computer wins!
-----------------------------------
Ruth: 0 computer: 1
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: rock
Ruth picks rock and Computer picks scissors
Ruth wins!
-----------------------------------
Ruth: 1 computer: 1
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: rock
Ruth picks rock and Computer picks rock
A Tie
-----------------------------------
Ruth: 1 computer: 1
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: rock
Ruth picks rock and Computer picks rock
A Tie
-----------------------------------
Ruth: 1 computer: 1
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: rock
Ruth picks rock and Computer picks paper
Computer wins!
-----------------------------------
Ruth: 1 computer: 2
-----------------------------------
Next Round:
Pick one of rock, paper or scissors: rock
Ruth picks rock and Computer picks paper
Computer wins!
-----------------------------------
Ruth: 1 computer: 3
-----------------------------------
Computer beats Ruth:
wins 3 games in 6 rounds of play