Guest User

Untitled

a guest
Jul 21st, 2017
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import time
  2. import random
  3. print("Welcome to csgogem!")
  4. pscore = 1
  5. print("Your current balance is "+str(pscore)+", would you like to double or quit?")
  6. while pscore != 0:
  7. pscore = str(pscore)
  8. print("Your current balance is "+str(pscore)+"!")
  9. pscore = int(pscore)
  10. choice = input("d/q :")
  11. if choice == ("d")or("D"): #later simplify cases
  12. luck = random.randint(1,100)
  13. if luck > 75:
  14. print("Upgrade failed!")
  15. pscore = 0
  16. else:
  17. print("Upgrade complete!")
  18. pscore = pscore * 2
  19. else:
  20. print("Incorrect command! Please retry!")
Advertisement
Add Comment
Please, Sign In to add comment