Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. start_game = input("Type 'enter' to enter the game: ")
  2. while start_game != "enter":
  3. start_game = input("Type 'enter' to enter the game: ")
  4. if start_game == "enter":
  5. print("Your entered a two player 'Rock Paper Scissors' game.")
  6. player_1 = input("Player 1's turn: ")
  7. player_2 = input("Player 2's turn: ")
  8. while player_1 == player_2:
  9. player_1 = input("Player 1's turn: ")
  10. player_2 = input("Player 2's turn: ")
  11. if player_1 != player_2:
  12. if player_1 == "rock" and player_2 == "paper":
  13. print("Player 2 won.")
  14. elif player_1 == "rock" and player_2 == "scissors":
  15. print("Player 1 won.")
  16. if player_1 == "paper" and player_2 == "rock":
  17. print("Player 1 won.")
  18. elif player_1 == "paper" and player_2 == "scissors":
  19. print("Player 2 won.")
  20. if player_1 == "scissors" and player_2 == "rock":
  21. print("Player 2 won.")
  22. elif player_1 == "scissors" and player_2 == "paper":
  23. print("Player 1 won.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement