Pages

Friday, February 21, 2014

personality test python

#personality test, cleaned up a little

import sys

question_list = [" 1. You have stepped on a bee, and it died stinging you.",
                " 2. An elderly lady is in the way at the liquor store, and can't hear you asking her to move.",
                " 3. A strangers child has knocked over your morning coffee with his large bouncy ball.",
                " 4. Someone is trying to dramatically tell you a story about thier trip to the zoo.",
                " 5. A clicking noise is getting louder as you try to rest.",
                " 6. Someone has defiled a church and placed thier landmark cross upside down.",
                " 7. You have awakened in a field of cotton candy blossoms whose neon filimants light up the sky.",
                " 8. The bicyclist in front of you refuses to get off the road and continues to ride in the middle even as you honk.",
                " 9. The voices say what?",
                " 10. A woman has sneezed and blood splatters on the floor in front of you.",
                " 11. A mysterious and dangerous looking individual is approaching you rapidly.",
                 "12. Are you tierd of questions?"]
               
one_results = {'a': 'so boringly normal.', 'b': 'At least you have an epipen. Right?',
                'c': 'Yea, I step on bees all the time.', 'd': 'Raid? Hell no, we got napalm.',
                'e': 'Sure, yell at it as it dies.', 'f': 'What makes you say that?',
                'g': 'Seriously? It is just a bee.'}
two_results = {'a': 'Kicking is fun. Alch-y.', 'b': 'Maybe if you yell explatives she will notice.',
                'c': 'Eh, you can get booze somewhere else.', 'd': 'throwing pine-sol at her might actually work.',
                'e': 'well maybe she can hear you, but the Captain Morgans is not going to fetch itself!',
                'f': 'but louder right?', 'g': 'That is illegal in 30 states.'}
three_results = {'a': 'again with the normal boring stuff!', 'b': 'At least you did not cry... did you?',
                'c': 'I aknowlege your suffering.', 'd': 'Fart in a can is the best for use in closed spaces. Kids love it.',
                'e': 'Did I mention the kids parent is extremely hot?', 'f': 'It was really good coffee after all.',
                'g': 'Uh-huh, and how long have you had these reactions?'}
four_results = {'a': 'It might work, but to what end?', 'b': 'It stuns them into silence. Good job!',
                'c': 'If they follow you, does the tree still fall in the woods?', 'd': 'Bleach... It might just burn thier throte enough...',
                'e': 'There is no try, only do!', 'f': 'Fine, I will kick them for you.', 'g': 'How are you going to get that into thier mouth?'}
five_results = {'a': 'normal is as normal does.', 'b': 'What because it might be something comming to get you?', 'c': 'My faucet leaks too.',
                'd': 'I love the smell of Lysol in the morning!', 'e': 'That does seem like a logical solution.',
                'f': 'Anything in particular, or the first thing that comes near?', 'g': 'Pretty sure you are not supposed to stick those in your ears.'}
six_results = {'a': 'Owww, oww owwy!', 'b': 'Sure, now you are a suspect.', 'c': 'Ninny ninny two by two, nothing left for you to do.',
                'd': 'Satan loves germs!', 'e': 'Oh, ok, but I really think you should explore this.', 'f': 'Are there three more churches near by?',
                'g': 'Hardly, the thing weighs 800 lbs!'}
seven_results = {'a': 'that seems inappropriate.', 'b': 'I think that is probably appropriate, next to wondering WTF.', 'c': 'LSD normal, or everyday normal?',
                'd': 'Might as well, reality is not working for you.', 'e': 'Louder then the growling Ninny-eater sitting over you?',
                'f': 'Yup, let me just write that down.', 'g': 'Cotton candy does sound delicious.'}
eight_results = {'a': 'Gas pedal or brake?', 'b': 'At least if you startle them, they might move.', 'c': 'or drive away...ninny',
                'd': 'Because they are sweaty gross bicyclist?', 'e': 'In a court of law, "I did not see them" will not fly.',
                'f': 'Honk, honk, honk.', 'g': 'So you are saying that you are not angry?'}
nine_results = {'a': 'Do not worry, I will not write that down...(writing quickly)', 'b': 'So more like panic, or dread?', 'c': 'Sure, it all makes sense now.',
                'd': 'Well as long they do not want you to drink it.', 'e': 'If it works, let me know.', 'f': 'Do the voices know what 51-50 means?',
                'g': 'That is very interesting. (run.... run now.)'}
ten_results = {'a': 'Make sure you wash your shoe afterward.', 'b': 'Bless you might have been better.', 'c': 'Good idea. Spread the plague to everyone.',
                'd': 'Splendid response.', 'e': 'You like that word?', 'f': 'Because blood is awesome.', 'g': 'It is for the good of all mankind.'}
eleven_results = {'a': 'Sure, kicking is always my first reaction.', 'b': 'Did I mention the individual is mute?',
                'c': 'Probably best. Ninny.', 'd': 'Especially if they touch you.',
                'e': 'It is ok not to answer.(ninny)', 'f': 'how about we just touch some lamposts and go watch monk?',
                'g': 'Is it legal for you to have that?'} #even responses.
twelve_results = {'a': 'eh, good thing I did not make it longer.', 'b': 'Results are gauranteed to be unprofessional, uneducated guesses. Ninny.',
                'c': 'Been on that couch a lot have you?', 'd': 'Please refrain from huffing until test is complete.', 'e': 'Ok, ok, I heard you.',
                'f': 'awww, it was not that bad.', 'g': 'I give, here are your results.'}  # odd responses.
def start_test():
    print "\n " * 4
    print "Here are your questions. \n Answer closest to your first response or 'g' for something not listed."
    print "You will recieve..... \n an uneducated, \n unprofessional, \n and totally unsactioned diagnosis at the end."
    print "\n" * 2
odd_choices = {'a': 'low anger',
                'b': 'anxiety',
                'c': 'nothing, this is normal',
                'd': 'There is a can of gas that needs some using.',
                'e': 'Be louder, that always works.',
                'f': 'just kill.',
                'g': 'other'
                }

printable_odd_choice = """
                a = low anger \n
                b = anxiety \n
                c = nothing, this is normal \n
                d = There is a can of gas that needs some using \n
                e = Be louder, that always works \n
                f = just kill \n
                g = other
                """
even_choices = {'a': 'kick something/someone',
                'b': 'yell Shut the F--k up',
                'c': 'walk away',
                'd': 'always disinfect. Or run to nearest medical facility.',
                'e': 'no',
                'f': 'maybe if we do it 3 more times.',
                'g': 'other'}

printable_even_choice = """
                a = kick something/someone \n
                b = Yell Shut the F--k up \n
                c = walk away \n
                d = always disinfect. Or run to the nearest medical center. \n
                e = no \n
                f = maybe if we do it 3 more times. \n
                g = other
                """

# A = "angry much?" B = "Passive aggresive is always fun", C = "Normal Ninny", D = "Munch-Howsens, or Sound mind", E = "Deaf, or narcasistic"
# F = OCD, or Friggen Nuts, G = Indecisive or Friggen Nuts, H = Friggen Nuts.
def personality_quiz():
    score_a = 0
    score_b = 0
    score_c = 0
    score_d = 0
    score_e = 0
    score_f = 0
    score_g = 0
    score_h = 0
    x = 0
    while x == 0:
        print question_list[int(x)]
        print printable_odd_choice
        answer = raw_input("Choose the one closest to your first response.")
        if answer in one_results:
            print '--- \n \n \n '
            print one_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 0
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 1
    while x == 1:
        print question_list[1]
        print printable_even_choice
        answer = raw_input("Choose the one closest to your first response.")
        if answer in two_results:
            print '--- \n \n \n '
            print two_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 0
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 2
    while x == 2:
        print question_list[2]
        print printable_odd_choice
        answer = raw_input(">>> ")
        if answer in three_results:
            print '--- \n \n \n '
            print three_results[answer]
            print '--- \n \n \n'
            break
           
        else:
            print "Please use keys a-->g"
            x = 2
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 3
    while x == 3:
        print question_list[3]
        print printable_even_choice
        answer = raw_input(">>> ")
        if answer in four_results:
            print '--- \n \n \n'
            print four_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 3
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
        x = 4
    while x == 4:
        print question_list[4]
        print printable_odd_choice
        answer = raw_input(">>> ")
        if answer in five_results:
            print '--- \n \n \n '
            print five_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 4
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 5
    while x == 5:
        print question_list[5]
        print printable_even_choice
        answer = raw_input(">>> ")
        if answer in six_results:
            print ' --- \n \n \n'
            print six_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 5
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 6
    while x == 6:
        print question_list[6]
        print printable_odd_choice
        answer = raw_input(">>> ")
        if answer in seven_results:
            print ' --- \n \n \n'
            print seven_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 6
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 7
    while x == 7:
        print question_list[7]
        print printable_even_choice
        answer = raw_input(">>> ")
        if answer in eight_results:
            print ' --- \n \n \n'
            print eight_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 7
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 8
    while x == 8:
        print question_list[8]
        print printable_odd_choice
        answer = raw_input(">>> ")
        if answer in nine_results:
            print ' --- \n \n \n'
            print nine_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 8
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 9
    while x == 9:
        print question_list[9]
        print printable_even_choice
        answer = raw_input(">>> ")
        if answer in ten_results:
            print ' --- \n \n \n'
            print ten_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 9
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
        x = 10
    while x == 10:
        print question_list[10]
        print printable_even_choice
        answer = raw_input(">>> ")
        if answer in eleven_results:
            print ' --- \n \n \n'
            print eleven_results[answer]
            print '--- \n \n \n'
            break
        else:
            print "Please use keys a-->g"
            x = 10
            x != 12
    if 'a' in answer:
        score_a += 1
    if 'b' in answer:
        score_b += 2
        score_a += 2
    if 'c' in answer:
        score_c += 5
        score_g += 1
    if 'd' in answer:
        score_d += 3
        score_e += 1
        score_g += 1
        score_f += 2
    if 'e' in answer:
        score_e += 5
        score_h += 2
    if 'f' in answer:
        score_f += 3
        score_h += 4
    if 'g' in answer:
        score_f += 2
        score_h += 3
    x = 11
    while x == 11:
        print question_list[11]
        print printable_odd_choice
        answer = raw_input(">>> ")
        if answer in twelve_results:
            print ' --- \n \n \n'
            print twelve_results[answer]
            print '--- \n \n \n'
            x = 12
    while x == 12:
            print "Your scores. If you score higher then 20 in any one catagorie..... wow. And quit cheating my game!"
            print "\n" * 2
            print "Anger index = %r" % score_a
            print "Passive aggressive 'or just an angry asshole' index = %r" % score_b
            print "Normal, normal Ninny = %r" % score_c
            print "Issues? Nothing prozac can't fix = %r" % score_d
            print "Get your ears checked and/or Narcasism = %r" % score_e
            print "OCD or Friggen nuts =  %r" % score_f
            print "Indecisive and/or Friggen Nuts = %r" % score_g
            print "Bat shit. = %r" % score_h
            print "\n"
            print "Please use keys a-->g"
            break
            x = 13
    if 'exit' in answer:
        sys.exit()

       
personality_quiz()


No comments:

Post a Comment