In [ ]:
#!/usr/bin/python
#Angelina Tilghman
import random
import time 

def explore_haunting_mansion():
    actions = ["Go inside", "Break into the house", "Run away"]
    random.shuffle(actions)
    
    guess = input("Guess the word spooky or ghostly: ")
    if guess == "spooky":
        print("Welcome to the Spooky Manison!!! ")
        time.sleep(1)
    else:
        print("Welcome to the Ghostly Manison!!! ")
        time.sleep(1)
        
    print("You find yourself standing infront of an old, creepy manison, and it is during  during the night...")
    time.sleep(1)
    print("Your goal is to explore the manison and find a way to esccape...")
    time.sleep(1)
    
    for action in actions:
        choice = input("What do you choose? 1. Go inside, 2. Break into the house, 3. Run away):")
        if choice == "1":
            print("You gather your courage and step inside the manison...")
            time.sleep(1)
            
            guessing = input("Guess a word slams or closes: ")
            if guessing == "slams":
                print("The door slams shut behide you, trapping you inside...")
                time.sleep(1)
            else:
                print("The door closes shut behide you, trapping you inside...")
                time.sleep(1)
                
            print("You hear whipsers and the floor starts to make creeking sounds...")
            time.sleep(1)
            print("You must navigate the manison and find the key to escape...")
            time.sleep(1)
            
            chance = input("Guess a word bad or terrible: ")
            if chance == "bad": 
                print("You decide to look around, but you get a very bad feeling about the haunted house, but you still continue to look around.")
                time.sleep(1)
            else:
                print("You decide to look around, but you get a very terrible feeling about the haunted house, but you still continue to look around.")
                time.sleep(1)
        
            print("You see stairs and decide to go up...")
            time.sleep(1)
            
        elif choice == "2":
            thinking = input("Guess a word enter or go in: ")
            if thinking == "enter":
                print("You decide that you didn't want to enter the haunted house, so instead of walking into the house you find a tool, so you can break into the window...")
                time.sleep(1)
            else:
                print("You decide that you didn't want to go in the haunted house, so instead of walking into the house you find a tool, so you can break into the window...")
                time.sleep(1)
                
            print("You found a brick and uses it to break inside the house...")
            time.sleep(1)
            print("The glass shatters everywhere... You start to get nervous, so you just go inside the window.")
            time.sleep(1)
            print("Once you enter everything is pitch black..")
            time.sleep(1)
            print("You grabbed your flashlight from your pocket...")
            time.sleep(1)
            print("You start to walk, but then you hear a noise...")
            time.sleep(1)
            print("You can feel air breathing on you.....")
            time.sleep(1)
            print("You decide to walk faster, but then you fell...")
            
            thought = input("Guess a word dizzy or confused:")
            if thought == "dizzy":
                print("Once you got up, you were very dizzy, you looked around and found out you weren't in the same place. You were in a whole different place...")
                time.sleep(1)
            else:
                print("Once you got up, you were very confused, you looked around and found out you weren't in the same place. You were in a whole different place...")
                time.sleep(1)
                
            print("You said to yourself, what happened...Then, you see a shadow approaching you...")
            time.sleep(1)
        
        elif choice == "3":
            
            act = input(" Guess a word run or zoom:")
            if act == "run":
                print("You turn around and run away as fast as you can...")
                time.sleep(1)
            else:
                print("You turn around and zoom away as fast as you can...")
                time.sleep(2)
                
            print("You can hear the sound of your own heartbeat as you escape...")
            time.sleep(1)
            print("Maybe it's best to stay away from the haunted mansion for now...")
            time.sleep(1)
            print("While you was running, you tripped...")
            time.sleep(1)
            print("As you fell to the ground, you scraped yourself on the rock..")
            time.sleep(1)
            print("You start to bleed out..")
            time.sleep(1)
            print("Blood was running down your leg.. ")
            time.sleep(1)
            print("You start to hear the noise coming closer, closer, closer and closer...")
            time.sleep(1)
            print("You were so frighten that you decide to scream for help. ..")
            time.sleep(1)
            
            calulate = input("Guess a word here or there:")
            if calulate == "here":
                print("HELP, HELP, HELP, i'm over here...")
                time.sleep(1)
            else:
                print("HELP, HELP, HELP, i'm over there...")
                time.sleep(1)
            
                
def exit():
    exitAnswer = input("Do you want to go again? Y or N")
    if exitAnswer == "Y" or exitAnswer == "y":
        explore_haunting_mansion()
    elif exitAnswer == "N"or exitAnswer == "n":
        print("Have a good day!!!")
        print("Thanks for playing have a good day!!!")
    else:
        print("Y, y or N, n please")
        exit()
        

explore_haunting_mansion()
exit()
Guess the word spooky or ghostly: ghostly
Welcome to the Ghostly Manison!!! 
You find yourself standing infront of an old, creepy manison, and it is during  during the night...
Your goal is to explore the manison and find a way to esccape...
What do you choose? 1. Go inside, 2. Break into the house, 3. Run away):break into the house
What do you choose? 1. Go inside, 2. Break into the house, 3. Run away):2
Guess a word enter or go in: go in
You decide that you didn't want to go in the haunted house, so instead of walking into the house you find a tool, so you can break into the window...
You found a brick and uses it to break inside the house...
The glass shatters everywhere... You start to get nervous, so you just go inside the window.
Once you enter everything is pitch black..
You grabbed your flashlight from your pocket...
You start to walk, but then you hear a noise...
You can feel air breathing on you.....
You decide to walk faster, but then you fell...
Guess a word dizzy or confused:dizzy
Once you got up, you were very dizzy, you looked around and found out you weren't in the same place. You were in a whole different place...
You said to yourself, what happened...Then, you see a shadow approaching you...
What do you choose? 1. Go inside, 2. Break into the house, 3. Run away):1
You gather your courage and step inside the manison...
Guess a word slams or closes: closes
The door closes shut behide you, trapping you inside...
You hear whipsers and the floor starts to make creeking sounds...
You must navigate the manison and find the key to escape...
Guess a word bad or terrible: terrible
You decide to look around, but you get a very terrible feeling about the haunted house, but you still continue to look around.
You see stairs and decide to go up...
In [ ]: