Assignment #45 Adventure

Code

    
    /// Name: Lacey Reese 
    /// Period: 5
    /// Program Name: Adventure
    /// File Name:  Adventure.java
    /// Date Finished 12/1/2015
    
  import java.util.Scanner;
    
    public class Adventure2
    {
        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\"?");
            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
                                {
                                    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");
                                }
                            
                        }
                       
    }
    

Picture of the output

// Assignment 45