Assignment #Project 1

Code

    
    /// Name: Lacey Reese 
    /// Period: 5
    /// Program Name:  Project1
    /// File Name:  Project1.java
    /// Date Finished 12/3/2015
    
   import java.util.Scanner;
    
    public class SlightlyLargerAdventure
    {
        public static void main ( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
            
            
            String a1, a2="", a3;
            
            System.out.println("WELCOME TO LACEY'S TINY ADVENTURE");       
            System.out.println("You and your friends are in a creepy house would you like to go \"upstairs\" or \"downstairs\" or \"attic\" ?");
            a1 = keyboard.next();
            System.out.println();
                
            if (a1.equals("upstairs") )
            {
                System.out.println(" You enter the kitchen, and you see a cabinet and a refrigerator, and you get hungry. Do you open the \"cabinet\" or the \"refrigerator\" ?");
                a2 = keyboard.next();
                System.out.println();

                if (a2.equals("refrigerator") )
                {
                    System.out.println(" Inside the refrigerator is a severed arm, and a human brain. Would you eat any of these? \"yes\" or \"no\" ?"); 
                    a3=keyboard.next();
                
                        if (a3.equals("yes") )
                        {
                            System.out.println("You become a zombie.");
                        }
                            
                        else if (a3.equals("no") )
                        {
                            System.out.println("Smart, you live!!");
                        }
                       
                else
                {
                    System.out.println("ur dumb");
                }
                       
                }   
            }
                
            else if (a2.equals("cabinet") ) 
            {
                System.out.println("In the cabinet their is skin chips, and dried eyeballs. Do you eat them? \"yes\" or \"no\"?");
                a3 = keyboard.next();
                
                if (a3.equals("yes") )
                {
                    System.out.println("You don't become a zombie, it was just chocolate eyeballs, and banana chips. You live");
                }
                            
            else if (a3.equals("no") )
            {
                    System.out.println(" The zombies get angry that you didn't eat them. Lol you die.");
            }
                       
            else
            {
                    System.out.println("lol your dumb");
            }
                            
            }
                       
            
           else if (a1.equals("downstairs") )
            {
                System.out.println("You walk down the stairs and there is a bredroom and bathroom, would you like to go in the \"bedroom\" or \"bathroom\" "); 
                a2 = keyboard.next();
                        
            if (a2.equals("bedroom") )
            {
                System.out.println(" You find yourself sleepy would you like to sleep? \"yes\" or \"no\" " );  
                a3 = keyboard.next();
                
            if (a3.equals("yes") )
            {
                System.out.println("You get eaten alive");
            }
                            
            else if (a3.equals("no") )
            {
                System.out.println(" You live! And are reunited with your family!");
            }
            else
            {
                System.out.println("lol ur dumb");
            }
                       
            }
                
            }
                
            else if (a2.equals("bathroom") ) 
            {
                System.out.println("You find a that you smell, and would like to take a shower? \"yes\" or \"no\" ");
                a3=keyboard.next();
                
            if (a3.equals("yes") )
            {
                System.out.println("You are squeaky clean so the zombies won't get you");
            }
            else if (a3.equals("no") )
            {
                 System.out.println("The zombies eat you alive because you smell.");
            }
                    
            else
            {
                System.out.println("lol ur dumb");
            }
                       
            }
            
            
           else if (a1.equals("attic") )
            {
                System.out.println("You walk up a ladder to find the attic, you see that their is a \"tunnel\", or to the \"light\". Which do you chose? ");
                a2 = keyboard.next();
                System.out.println();

            if (a2.equals("tunnel") )
            {
                System.out.println("  You slide down the tunnel and you you find treasure! Do you take it? \"yes\" or \"no\" ?"); 
                a3=keyboard.next();
                
            if (a3.equals("yes") )
                 {
                    System.out.println("The zombies got angry that you stole their treasure.....you die");
                 }
                            
            else if (a3.equals("no") )
            {
                System.out.println("You live! Your parents taught you not to steal! Congrats.");
            }
                       
            else
            {
                System.out.println("lol ur dumb");
                
            }
            }
                else if (a2.equals("light") ) 
                {
                System.out.println(" You see your family. Do you go toward them? \"yes\" or \"no\".");
                a3 = keyboard.next();
                
                if (a3.equals("yes") )
                {
                    System.out.println("Zombies were just dressed up as them. You die");
                }
                            
            else if (a3.equals("no") )
            {
                    System.out.println(" You live! They werent your real family. You live!");
            }
                       
            else
            {
                    System.out.println("lol your dumb");
            }
                            
            }
            }
            }
            
        }
    



   


    

Picture of the output

// sorry that it isnt readable I will do better on that Assignment Project1