Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import random
- print("Welcome to csgogem!")
- pscore = 1
- print("Your current balance is "+str(pscore)+", would you like to double or quit?")
- while pscore != 0:
- pscore = str(pscore)
- print("Your current balance is "+str(pscore)+"!")
- pscore = int(pscore)
- choice = input("d/q :")
- if choice == ("d")or("D"): #later simplify cases
- luck = random.randint(1,100)
- if luck > 75:
- print("Upgrade failed!")
- pscore = 0
- else:
- print("Upgrade complete!")
- pscore = pscore * 2
- else:
- print("Incorrect command! Please retry!")
Advertisement
Add Comment
Please, Sign In to add comment