Assignemnt #45 and Choose Your Own Adventure

Code

         ///Name: Mark Katz
    ///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 r1="", r2="", r3="",r4="", r5="", r6="", r7="";
            
            System.out.println( "WELCOME TO MARK'S SPOOOOOKY HOUSEEEEEEEEE!!!!!!!!" );
            System.out.println( "" );
            System.out.println( "There is only one posability for you to survie. Have fun!" );
            System.out.println( "" );
            System.out.println( "You are in a creepy house! Would you like to go into the attic or basement? ( up or down ) " );
            System.out.print( ">" );
            r1 = keyboard.next();
            System.out.println( "" );
            
           
            if ( r1.equals("up"))
            {
                System.out.println( "You walk upstairs and youre at a T intersectiosn. To the left there is a hallway with and open door with a light flickering. To the right there is a closet with claw marks and blood all over. Which one do you go to? ( left or right ) " );
                System.out.print( ">" );
                r2 =keyboard.next();
                System.out.println( "" );
                
                if ( r2.equals("left"))
                {
                    System.out.println( "You walk down the hall and see a zombie holding a gun. You can either run at him and take the gun and shoot him, or you can walk into the room right next to it and hide. What do you do? ( run or hide )" );
                    System.out.print( ">" );
                    r4 =keyboard.next();
                     System.out.println( "" );
                }
                    if ( r4.equals("run"))
                       
                    {
                        System.out.println( "You run at the zombie but he attacks you and you're bitten. You leave the building and spread the zombie virus which infects the entire world, wiping out the entire population. NICE JOB!");
                    }
                    else if ( r4.equals("hide"))
                       
                    {
                        System.out.println( "You quickly hide into the room right next to the zombie. However, that room is full of boa constricters who crush you, leaving you DEAD! LOL" );
                    }
            }
               
            
                    else if ( r2.equals("right"))
                {
                    System.out.println( "You walk over to the closet and open the door. There is a small puppy with a human hand in its mouth and a dead body next to it. Do you stomp on the puppy and kill it, or do you pick it up and see what's wrong with it. ( stomp or pick )" );
                    System.out.print( ">" );
                    r5 =keyboard.next();
                    System.out.println( "" );
                }
                        if ( r5.equals("stomp"))
                        {
                            System.out.println( "You are a terrible person. You stomped on the puppy's head, but it was full of plastic explosives and you blew yourself up. Congrats you're dead." );
                        }
                        else if ( r5.equals("pick"))
                        {
                            System.out.println( "You pick up the puppy and it turns out to be one of Voldemort's horcrux's. Harry potter comes and you save the entire wizarding world. Congrats!! You win!!!!!!" );
                        }
            
            else if( r1.equals("down"))
            {
                System.out.println( "You walk downstairs into the really spooky basement. There is a trapdoor with a lot of thumping on it to your left. To the right there is a room with an open door, and a lady that sounds like your mom talking. Do you go through the trapdoor or do you go to the room? ( trap or room )" );
                System.out.print( ">" );
                r3 =keyboard.next();
                System.out.println( "" );
            }
                if ( r3.equals("room"))
                {
                    System.out.println( "You walk over to the room and you see a demon that sounds like your mom. Right next to you there is a machete. Do you run or pick up the machete and kill the demon? ( run or kill )" );
                    System.out.print( ">" );
                    r6 =keyboard.next();
                }
                    if ( r6.equals("run"))
                    {
                        System.out.println( "You try to run, but the demon closes the door and eats your face. You're now dead. " );
                    }
                    else if (r6.equals("kill"))
                    {
                        System.out.println( "You pick up the machete, but the demon uses her powers and stabs you with your own weapon. LOL you dead. " );
                    }
                
                else if ( r3.equals("trap"))
                {
                    System.out.println( "You go down into the trapdoor. You see Shrek. Do you take a picture cause he's a celebrity or do you run cause he's and ogre? ( run or pic )" );
                    System.out.print( ">" );
                    r7 =keyboard.next();
                    System.out.println( "" );
                }
                        if ( r7.equals("run"))
                        {
                            System.out.println( "You try and run, but since he's ogre he stretches out his 10 foot long arms and grabs you and eats you cause he's an ogre." );
                        }
                        else if ( r7.equals("pic"))
                        {
                            System.out.println( "You try to take a picture, but since he's an ogre he eats you. LOL " );
                        }
          
    }
    }
    

Picture of the output

Assignment45