Project 1

Code

///colin hinton
///5th period
///Project
///Project.java
///10/26/2015

import java.util.Scanner;

class Project
{
    public static void main (String [] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        String questOne, questTwo, questThree;
        
        System.out.println("You are in matts house and you don't know where the bathroom is, do you \"look\" for it, \"ask\" for it, or just \"go\" for it on the floor?");
        
        questOne = keyboard.next();
        
        if (questOne.equals("look"))
        {
            System.out.println("You go down his hallway only to find two unmarked doors. You believe that one of them is his parents room, do you use the \"left\" door or the \"right\" door?");
            
            questTwo = keyboard.next();
            
            if (questTwo.equals("left"))
            {
                System.out.println("You have stumbled into matt's brother watching a very strange video that he immediatly hid under the bed, you now hear moaning coming from under the covers of his bed. Do you \"join\" him in exploring his sexual adventues, or do you \"run\" away and take your bathroom break elsewhere?"); 
                questThree = keyboard.next();
                
                if (questThree.equals("join"))
                {
                    System.out.println("ADMIN TAKEOVER, REPORTED TO LOCAL AUTHORITIES FOR SUSPISIOUS ACTIVITY. DANGER DANGER DANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGERDANGER DANGER");
                }
                else if (questThree.equals("run"))
                {
                    System.out.println("You run so far that you are soon in another city, you find a public bathroom and live happiliy ever after untill a car crashes into you 12 years later during you batchlor party sending your fiance into spiralling depression and widowhood, but hey you found the bathroom so yay you!");
                }
                else 
                {
                    System.out.println("levae");
                }
            }
            else if (questTwo.equals("right"))
            {
                System.out.println("You find the bathroom and begin your business, quickly into though you realize that matt doesnt have any toilet paper, do you go comando and \"yolo\" it, or do you \"steal\" some leafs from matt's extensive bathroom plan collection.");
                questThree = keyboard.next();
                
                if (questThree.equals("yolo"))
                {
                    System.out.println("You later get a really bad rash when then turns into a really bad infection which then turns into your untilment death, i guess you only live once ayyy lmao.");
                }
                else if (questThree.equals("steal"))
                {
                    System.out.println("You start to steal some leaves but then you quickly realize that the leafs are poisioned and you then slowly die on the toilet seat, imagine their faces when they see you dead, kek.");
                }
                else 
                {
                    System.out.println("no");
                }
            }
            else
            {
                System.out.println("You have been removed from the house for not following directions");
            }
        }
        else if (questOne.equals("ask"))
        {
            System.out.println("You go up to ask matt but you notice that he is hiding something under his bed, do you \"peep\" and see what is under the bed, or do you just \"ask\" him where it is like you came here to do? ");
            
            questTwo = keyboard.next();
            
            if (questTwo.equals("peep"))
            {
                System.out.println("You start to look under his bed and suddenly matt attacks you, you have two options \"run\" away or \"fight\" him. What do??? ");
                
                questThree = keyboard.next();
                
                if (questThree.equals("run"))
                {
                    System.out.println("You try to run but matt's brother tackels you in the hallway, you then get dragged into his secret layer and are experimented on, it isnt untill the year 2020 that you are realised, you are in so much emotional pain that you forgot what happened and go to matt's house to ask where have you been for the last 5 years.");
                }
                else if (questThree.equals("fight"))
                {
                    System.out.println("You try and fight matt, but little did you realize that after watching all of his annime he actully knew how to fight, you get your butt hannnded to yourself and go home sore.");
                }
            }
            
            else if (questTwo.equals("ask"))
            {
                System.out.println("You ask him and he starts getting really defensive, you arent sure if this is worth pursuting, do you \"ask\" again more aggressivly or do you just \"look\" and see what it is? ");
                
                questThree = keyboard.next();
                
                if (questThree.equals("ask"))
                {
                    System.out.println("You ask again nicely and he decides to show you, its a large collection of bodies and manga, you ask if you can borrow his death note and he allows it this one time since you are such a good friend.");
                }
                else if (questThree.equals("look"))
                {
                    System.out.println("You try and take a peek at what he is hiding, but he instead calls in a hoard of women who were hiding in there the whole time, you get scratched to death, gg.");
                }
            }
            else 
            {
                System.out.println("you goofed");
            }
        }
        else if (questOne.equals("go"))
        {
            System.out.println("You start to take your pants off when suddenly matt's hoard of girls come out looking for him, you stand there awkwardly for a bit then you realize you have two options, you could either do a strip \"tease\" or you could be a normal human being and just \"zip\" your pants back up. ");
            
            questTwo = keyboard.next();
            
            if (questTwo.equals("tease"))
            {
                System.out.println("You start to do it but then the ladies are just laughing at you, and you are kinda ashamed but there is this one cute girl who isnt laughing and being a good audience, do you \"ask\" her out and keep dancing for her, or do you \"leave\" with your shame?");
             questThree = keyboard.next();
                
                if (questThree.equals("ask"))
                {
                    System.out.println(" You ask her out and she says yes, you leave with your pride and a pretty lady to go on a wonderful wendy's date. I heard they have good milkshakes.");
                }
                else if (questThree.equals("leave"))
                {
                    System.out.println("really bro, fine, you leave, there you happy, why DID YOU CHOOSE THIS ENDING, GET A GIRL FFS.");
                }
                
            }
            else if (questTwo.equals("zip"))
            {
                System.out.println("You start to zip your pants up but it gets stuck and you need assistant, do you \"ask\" a girl for some help or do you just \"run\" away with a stuck zipper?");
                
                questThree = keyboard.next();
                
                if (questThree.equals("ask"))
                {
                    System.out.println("No one helps you, what did you expect nerd.");
                }
                else if (questThree.equals("run"))
                {
                    System.out.println("You start to run away but then you trip and now every girl sees your butt, but now they are all jelious and because of strange logic they all befriend you. You are the real winner.");
                }
            }
                                   
        }
        else 
        {
            System.out.println("You got kicked out of matt's house since you didn't follow instructions ");
        }
    }
}    
        
    



    

Picture of the output

Assignment 1