Project 1, Chose Your Own Slightly Longer Adventure

Code

   ///Name: Stella Koliavas
   ///Period: 5
   ///File Name: Adventure3.java
   ///Date Finshed: 3/3/16
   
    import java.util.Scanner;

public class Adventure3
{
    public static void main(String [] args)
    {
    
    Scanner siri = new Scanner(System.in);
    
        String door= "", injury = "", trama= "", hole="", room="", door2="", knife="",
        choice= " ", fork= " " ;
    
        System.out.println("Welcome to the haunted house!");
        
        System.out.println("You are standing on the porch of a haunted house in your 
        neighborhood and push the front door open and see two doors and some stairs leading down.
        Would you like to go in the \"left\" or \"right\" door, or \"down\"stairs?");
        door = siri.next();
        if (door.equals("left"))
        {
            System.out.println("You open the door and fall into a deep hole immediately and injure
            your ankle and your head hurts due to the fall. Which would you like to deal with first?
            \"ankle\" or \"head\"? ");
        injury = siri.next();
        
          if (injury.equals("ankle"))
          {{
                System.out.println("You rip the bottom of your shirt and tie it around your ankle
                to support it. You also now have a terrible headache. Would you now like to stand 
                up and \"scream\" for help or \"wait\" it out? ");
                hole = siri.next();
          }
                if (hole.equals("scream"))
                {
                    System.out.println("Because you ignored your head injury and you are now 
                    screaming and pushing more blood through your body to scream, you faint due to
                    exhaustion and the fall cause more blunt trama to your head which then kills
                    you. You die in the hole and no one ever discovers your body and you're presumed 
                    missing.");
                }
                if (hole.equals("wait"))
                {
                    System.out.println("No one ever discovers you to be missing because zombies invaded
                    the town as you were falling in the hole. No one questions where you are and you
                    are presumed to be eaten by zombie before you actually are eaten by a zombie 45 
                    days later.");
                }}
           if (injury.equals("head"))
           {{
                System.out.println("Good choice. Without proper care, the head injury would have
                lead to death due to a severe blunt trama. You wrap your head tightly and use what
                little first aid training you know to help the bleeding stop. Do you now want to 
                use your cell phone to \"call\" 911 or \"manage\" it until you get out of the house? " );
                trama = siri.next();
            }
                if (trama.equals("call"))
                {
                    System.out.println("You turn on and shine your phone on only to discover that
                    the hole you're in is an alien hideout and you are now trapped and a subject 
                    in their experiment on humans. You die 8 years later due to pancreatic cancer
                    after barging for freedom and falling in taboo love with an underage alien. Right
                    before you die on your deathbed on Mars, your alien lover tells you she is
                    pregnant and you die with joy for your new alienhuman baby in your heart.");
                }
                if (trama.equals("manage"))
                {
                    System.out.println("Because you are stupid enough to manage your head injury until
                    you get out, you die because you never find a way out of the 15 ft deep concrete 
                    hole in the ground.");
                }}}
                      
        if (door.equals("right"))
        {
            System.out.println("You push the door open and it creaks softly. Inside you find the house
            styled in an old victorian manner. Would you like to go \"upstairs\" or in the 
            \"kitchen\"? ");
            room = siri.next();
        
            if (room.equals("upstairs"))
            {{
                System.out.println("You climb the creaky stairs and you see a long hallway and an 
                ajar door and a locked door at the end of the hallway. Would you like to \"break\"
                open the locked door or \"push\" the ajar one further open?");
            door2 = siri.next();
            }
                if (door2.equals("break"))
                {
                    System.out.println("You break the door open only to find a room full of cobwebs 
                    and a small key on the ground. You pick up the key and insert it into the large
                    and cold metal safe next to you. Once the safe clicks open you push it with all
                    your might, inside lies 4 frozen decomposing bodies. Thanks for playing the
                    game!");
                }
                if (door2.equals("push"))
                {
                    System.out.println("The ajar door creaks open and gets stuck at about 3/4 of the
                    way. You slide inside only to find pure darkness. You go to turn back quickly 
                    into the dimly lit hallway and the door slams shut with a cold breeze. Panicking
                    you go to bang on the door, hoping someone will hear you. Thanks for playing.");
                }}
            if (room.equals("kitchen"))
            {{
                System.out.println("You go into the kitchen. It looks new, modern, and recently 
                redone. On the cutting board behind the island in the middle of the kitchen lies a
                bloody knife. Would you like to \"investigate\" it or \"run away\"?" );
                knife = siri.next();
            }
                if (knife.equals("investigate"))
                {
                    System.out.println("As you get closer to the knife someone in dark clothing with
                    a hood jumps up from behind the island. They leap upon you with a smaller knife 
                    and cut your jugular. You fall to the floor next to the old, pale and dead owner 
                    of the house.");
                }
                if (knife.equals("run away"))
                {
                    System.out.println("As you run away from the kitchen to the side door you spot
                    across from you, you  trip on something. On the ground, you look down to see that
                    you tripped on a severed hand. You start screaming only to be silenced by a
                    gloved hand. Thanks for playing!");
                }}}
        
        if ( door.equals("down") )
			{
				System.out.println( "You walk down the creaking stairs and you fall through. Luckly you 
				land on something soft but it smells weird. You look down you find out you land on a bunch 
				of bodies and there's a sewage tunnel with a blood trail leading into it. Do you follow the
				\"blood\" or do you \"call\" 911 and report all the dead, decaying bodies?" );
            choice = siri.next();
            if ( choice.equals("blood") )
            {
                System.out.println( "You pull out your iphone and turn on the flashlight. You see 
                odd, satanic writing on the walls but being stupid, you continue to go down the sewage 
                tunnel. You come to a fork in the tunnel. Do you go \"left\" or \"right\"?");
				fork = siri.nextLine();
            }
				if ( fork.equals("left") )
                {
					System.out.println( "You turn a hard left and come to an odd mirror. Curiously you look 
					into the mirror only to see a deranged killer staring at you and mimicking your every 
					move. You run away, unsure if the stranger in the mirror is you.");
                }
                if ( fork.equals("right") )
                {
                    System.out.println( "You turn a hard right and walk right into an alligator. 
                    He introduces himself in rather upbeat voice as Bob, and then bores you with his 
                    life story. When he starts to see you're bored he gets angry and eats you alive. 
                    GAME OVER.") ;
                }
            if ( choice.equals("call") )
            {
                System.out.println( "You call 911 only to get no answer. You go to redial when you
                begin to hear rustling and snaring sounds. You begin to run back up the broken stairs
                when something supernatural throws you against the wall and you die from loss of blood. 
                GAME OVER.");
                
            }}
    }
    }
        
        
        


        
    

Picture of the output

Project 1