JunkieHF

Rock Paper Scissors (Python Game)

Jul 12th, 2014
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.96 KB | None | 0 0
  1. def main():
  2.     player_one = raw_input("Please type rock, paper, or scissors ")
  3.     player_two = raw_input("Please type rock, paper, or scissors ")
  4.     if player_one == 'rock' and\
  5.     player_two == 'rock':
  6.   print 'Tie Game'
  7.     elif player_one == 'rock' and\
  8.     player_two == 'paper':
  9.   print 'Player two wins!'
  10.     elif player_one == 'rock' and\
  11.     player_two == 'scissors':
  12.   print 'Player one wins!'
  13.     elif player_one == 'paper' and\
  14.     player_two == 'paper':
  15.   print 'Tie Game!'
  16.     elif player_one == 'paper' and\
  17.     player_two == 'rock':
  18.   print 'Player One Wins!'
  19.     elif player_one == 'paper' and\
  20.     player_two == 'scissors':
  21.   print 'Player Two Wins!'
  22.     elif player_one == 'scissors' and\
  23.     player_two == 'scissors':
  24.   print 'Tie Game!'
  25.     elif player_one == 'scissors' and\
  26.     player_two == 'rock':
  27.   print 'Player Two Wins!'
  28.     elif player_one == 'scissors' and\
  29.     player_two == 'paper':
  30.   print 'Player One Wins!'
  31. x = 1
Add Comment
Please, Sign In to add comment