Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start_game = input("Type 'enter' to enter the game: ")
- while start_game != "enter":
- start_game = input("Type 'enter' to enter the game: ")
- if start_game == "enter":
- print("Your entered a two player 'Rock Paper Scissors' game.")
- player_1 = input("Player 1's turn: ")
- player_2 = input("Player 2's turn: ")
- while player_1 == player_2:
- player_1 = input("Player 1's turn: ")
- player_2 = input("Player 2's turn: ")
- if player_1 != player_2:
- if player_1 == "rock" and player_2 == "paper":
- print("Player 2 won.")
- elif player_1 == "rock" and player_2 == "scissors":
- print("Player 1 won.")
- if player_1 == "paper" and player_2 == "rock":
- print("Player 1 won.")
- elif player_1 == "paper" and player_2 == "scissors":
- print("Player 2 won.")
- if player_1 == "scissors" and player_2 == "rock":
- print("Player 2 won.")
- elif player_1 == "scissors" and player_2 == "paper":
- print("Player 1 won.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement