Created
August 3, 2016 21:38
-
-
Save kevin-weitgenant/bef64a42dc50d5a9a9b7feaac3e222b4 to your computer and use it in GitHub Desktop.
practicepython.org Exercise 08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = "1" | |
while x == "1": | |
player1 = input("Player 1, Choose Rock, Scissors or Paper:") | |
player2 = input("Player 2, Choose Rock, Scissors or Paper:") | |
if player1 == player2: | |
print("Draw!") | |
x = input("Start a new game? Say 1 = Yes Say 0 = No") | |
elif player1 != player2: | |
if player1 == "Rock" and player2 == "Scissors": | |
print("Player 1 Wins!") | |
x = input("Start a new game? Say 1 = Yes Say 0 = No") | |
elif player1 == "Scissors" and player2 == "Paper": | |
print("Player 1 Wins!") | |
x = input("Start a new game? Say 1 = Yes Say 0 = No") | |
elif player1 == "Paper" and player2 == "Rock": | |
print("Player 1 Wins!") | |
x = input("Start a new game? Say 1 = Yes Say 0 = No") | |
else: | |
print("Player 2 Wins!") | |
x = input("Start a new game? Say 1 = Yes Say 0 = No") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment