Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import math
- fox = random.randint(0,900)
- print '*' * 50
- print ' ' * 10, 'Welcome To Rock Paper Fucking Scissors!'
- print '*' * 50
- opener = raw_input('DO YOU THINK YOU HAVE WHAT IT TAKES!!!')
- #opener2 =
- zero = int(0)
- num_rounds_won = zero
- def thrower1(fox):
- fox = random.randint(0,900)
- if fox <= 300:
- return 'r'
- elif 300 < fox <= 600:
- return 's'
- else:
- return 'p'
- rd1 = thrower1(fox)
- while True:
- choose = str(raw_input("Rock, Paper, or Scissors?"))
- choice = choose.lower()[0:1]#
- raw_input("play again?")
- if yes ref()
- def ref(choice, rd1):
- if choice == 'r' and rd1 == 'p':
- return num_rounds_won + 1
- elif choice == 'p' and rd1 == 'r':
- return num_rounds_won + 1
- elif choice == 's' and rd1 == 'p':
- return num_rounds_won + 1
- elif choice == rd1:
- return "Draw"
- else:
- return "I Win!"
- results = ref(choice, rd1)
- print results
- print num_rounds_won + 1
Advertisement
Add Comment
Please, Sign In to add comment