Tuesday, May 6, 2014

Fun with Python : Magic Eight Ball

import random
import sys

answers = (["GET THE FUCK OFF, I'M NOT ANSWERING THAT!",
            "ARE YOU HIGH? NAH!! NOT GONNA HAPPEN, BRO!"
            "OF COURSE. YOU ARE A CUTIE PIE!"
            "FUCK YOU! YOUR STUPIDITY LEVEL IS OVER 9000."
            "HELL, YEAH!"
            "FUCKING NO."
            "DEFINITELY."
            "THERE'S A 50% CHANCE"
            "FLIP A COIN. NOW GO AWAY!"
            "DON'T COUNT ON IT."
            "TAKE A DUMP AND THEN ASK AGAIN, MAYBE?"
            "IF IT'S MEANT TO BE, IT'S MEANT TO BE."
])

print("WELCOME TO MAGIC FUCKING EIGHT BALL!!")
print("WHAT THE HELL IS YOUR QUESTION?")
question = input()

fuck = 1
while fuck == 1:
    x = random.choice(answers)
    print("MY ANSWER IS: " , x)
    print("IF YOU WANT TO EXIT, TYPE QUIT OR ASK AGAIN")
    question = input()
    if question == 'quit':
        quit = sys.exit("DIE ALONE, YOU MORON!")
    if question == 'QUIT':
        quit = sys.exit(["DIE ALONE, YOU MORON!"])