Assignment 45, Chose Your Adventure

Code

   ///Name: Stella Koliavas
   ///Period: 5
   ///Program Name: Adventure
   ///File Name: Adventure.java
   ///Date Finshed: 11/9/15

 import java.util.Scanner;

public class Adventure
{
    public static void main(String [] args)
    {
    
    Scanner siri = new Scanner(System.in);
    
        String door= "", injury = "", trama= "", hole="", room="", door2="", knife="";
    
        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 you see two doors
        leading into the house. Would you like to go in the \"left\" or \"right\" door? ");
        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!");
                }
            
                }
                }
                  
            
            
        
        
        
       


        
        
        
    

Picture of the output

Assignment45