Assignemnt #45 and My Adventure

Code

    
    ///name: nick cerdan
    ///period: 6
    ///program name: Choose Your Own Adventure
    ///file name: Adventure.java
    ///date finished: 10/2/15
    
    import java.util.Scanner;
    
    public class Adventure
    {
        public static void main(String[] args)
        {
            Scanner keyboard = new Scanner(System.in);
            
            String ud, ld, jc, sc, cr, ad, dn;   
            
            System.out.println("");
            System.out.println("WELCOME TO THE SPOOKS SPOOKS HOUSE! ;)");
            System.out.println("There is one scenario when you survive. Good Luck!");
            System.out.println("");
            System.out.println("Would you rather go upstairs or into the basement (up or down)");
            System.out.print(">");
            ud = keyboard.next();
            System.out.println("");
            
            if ( ud.equals("up"))
            {
                System.out.println("Once going upstairs there is one room with light and one dark room, which one do you go in? (light or dark)");
                System.out.print(">");
                ld = keyboard.next();
                System.out.println("");
                
                if (ld.equals("light"))
                {
                    System.out.println("Inside the room there is a shattered window and a closet door that is ajar. Do you jump out the window or check the closet? (jump or check)");
                    System.out.print(">");
                    jc = keyboard.next();
                    System.out.println("");
                    
                    if (jc.equals("jump"))
                    {
                        System.out.println("there is cement at the bottom, sorry, you died");
                    }
                    
                    else if (jc.equals("check"))
                    {
                        System.out.println("The closet is filled with spiders, and they are poisoness, sorry you died");
                    }
                    
                }
                
                else if (ld.equals("dark"));
                {
                    System.out.println("You feel around and find two doorknobs. One is slimy and the other is freezing cold. Which on do you open? (slimy or cold)");
                    System.out.print(">");
                    sc = keyboard.next();
                    System.out.println("");
                    
                    if (sc.equals("slimy"))
                    {
                        System.out.println("You are unsure about what happens next, but all you can feel is something sucking on your leg until you pass out and die.");
                    }
                    
                    else if (sc.equals("cold"))
                    {
                        System.out.println("As soon as you step in the room the dorr slams behind you and the tempurature drops. Have fun being a popsicle!");
                    }
                }
            }
            
            else if (ud.equals("down"))
            {
                System.out.println("After descending into the basement you see a pair of red eyes. Do you go closer or run to the corner like a little baby? (closer or run");
                System.out.print(">");
                cr = keyboard.next();
                System.out.println("");
                
                if (cr.equals("closer"))
                {
                    System.out.println("You find that it is only a nightlight plugged in next to the light switch. Once you turn on the light you can see that there is a ladder, it can be taken up or down. Do you ascend the ladder, or decend it? (ascend or descend)");
                    System.out.print(">");
                    ad = keyboard.next();
                    System.out.println("");
                    
                    if ( ad.equals("ascend"))
                    {
                        System.out.println("You climb up the ladder until one rung snaps and you fall to your death");
                    }
                    
                    else if (ad.equals("descend"))
                    {
                        System.out.println("You descend the ladder until you reach the bottom. At the bottom there is just one small, dimly lit room but with a staircase to the outside. Congratualations! You Survived!");
                    }
                }
                
                else if (cr.equals("run"))
                {
                    System.out.println("You run to the corner and cry like a baby. Once you are done power-crying you get up and follow down a long hallway until it ends into a large room. The room is dimly lit and in the middle on a old wooden stool is sitting a baby clown doll. It then speaks saying 'Dance for me or die'. Do you dance so say no? (dance or no)");
                    System.out.print(">");
                    dn = keyboard.next();
                    System.out.println("");
                    
                    if ( dn.equals("dance"))
                    {
                        System.out.println("You dance like a crazy person truly showing how insane you have become. You spend the rest of your life dancing in the basement of this creepy house");
                    }
                    
                    else if ( dn.equals("no"))
                    {
                        System.out.println("You refuse to dance and unfortunately the doll wasn't lieing, you're dead, sorry.");
                    }
                }
            }
        }
    }
    
    Assignment 45