Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import random
- global memes
- memes = 0
- gold = 0
- meme_registry = [
- ("Pepe", 10),
- ("Damn, Daniel", -1),
- ("Ted Cruz is the Zodiac Killer", 2),
- ("DAT BOI", 20),
- ("The Bee Movie", 15),
- ("Nut Button", 10),
- ("MLG", 8)
- ]
- def start():
- print("Hello and welcome!")
- time.sleep(2)
- name = input("What is your name? ")
- print("Greetings " + name )
- time.sleep(2)
- print("This objective of this game is to collect memes.")
- time.sleep(2)
- print("After collecting memes you can sell them by saying no to harvest a meme!")
- time.sleep(2)
- choice = input(" Would you like to play? Y/N: ")
- if choice == "Y":
- begin()
- elif choice == "N":
- print("Okay, Bye!")
- def begin():
- global memes
- global gold
- print("--------------------------------------------------")
- if gold > 99:
- print("You have won the game!")
- play = input("Do you want to play again?")
- if play == "Y":
- begin()
- elif play == "N":
- print("Okay bye!")
- harvest = input("Would you like to harvest a meme? Y/N: ")
- if harvest == "Y":
- time.sleep(0)
- # This is where I added the dank meme part
- newmeme = random.choice(meme_registry)
- print("You have harvested a", newmeme[0], "meme!")
- print("It's worth", newmeme[1], "memes!")
- if random.random() < 0.1:
- print("Yo, it was a dank one! It's worth double!")
- memes = memes + newmeme[1] * 2
- else:
- memes = memes + newmeme[1] * 1
- print("You currently have", memes , "memes")
- begin()
- if harvest == "N":
- sell = input("Do you want to sell your memes? Y/N5: ")
- if sell == "Y":
- global gold
- global memes
- print("You currently have " , memes , " memes")
- print("You have sold your memes")
- gold = memes * 10
- memes = 0
- print("Your gold is now " , gold)
- begin()
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement