PERSONAL ADVENTURE PROJECT! Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: Adventure /// File Name: Adventure.java /// Date Finished: 11/24/2015 import java.util.Scanner; public class LONGESTADVENTURE { public static void main( String[] args ) { Scanner input = new Scanner(System.in); String selection0, selection1, selection2, selection3, selection4; System.out.println(); System.out.println(); System.out.println( "WELCOME TO YORDAN'S LONGER ADVENTURE!" ); System.out.println(); System.out.println(); System.out.print( " You find yourself in a creepy old house, again, unfortunately. This time you're in a much larger house. There are a lot more rooms and areas to explore. This haunted house thing is still going on. You have finally decided that you'd want to crack this case. You walk around in the house. You hear footsteps upstairs. Would you like to go check out the rooms \"upstairs\" or would you like to continue looking around for clues on the \"firstfloor\"?\n> " ); selection0 = input.nextLine(); System.out.println(); if (selection0.equalsIgnoreCase("upstairs")) System.out.print("You make your way up the long staircase. As you go up, the stair case is making loud noises and creaks. You keep hearing noises and whispers into your ear. You began to see things and you freak out. However you have managed to get all the way up to the second floor. Now you can go only one way. Would you like to go \"left\" or \"right\"?\n> "); selection1 = input.nextLine(); System.out.println(); if (selection1.equalsIgnoreCase("left")) System.out.print("You have decided to turn left. As you make your way down the hallway, you get another vision. This time its real creepy stuff. You see the back of a little girl. She's just standing there in the middle of the hallway not saying anything, but clearly is alive. Would you like to \"approach\" her or just \"runaway\"?\n> "); selection2 = input.nextLine(); System.out.println(); if (selection2.equalsIgnoreCase("approach")) System.out.print("You are now slowly approaching this little girl. As you slowly make your way down the hallway, she seems notified of your existance and quickly runs away down the end of the hallway and takes a right onto the other hallway. Would you like to \"follow\" her or \"leave\"?\n> "); selection3 = input.nextLine(); System.out.println(); if (selection3.equalsIgnoreCase("follow")) System.out.println("You decide to follow the little creepy girl. She has ran into a dead end into the hallway. You are still facing her back. You decide to talk to and figure out what the hell is going on in this house. However, she does not reply to any of your questions. Now, all you can hear is her quiet voice. She is singing. You are completely freaked out. What do you do? Do you \"leave\" or do you \"grab\" her?\n>"); selection4 = input.nextLine(); System.out.println(); if (selection4.equalsIgnoreCase("leave")) System.out.print("You decide to turn around and get the hell out of there. As soon as you turn around, there is a tall figure right infront of you wearing a mask and holding a machete. He chops your head off and you die..."); if (selection4.equalsIgnoreCase("grab")) System.out.println("As soon as you grab her, she begans to scream so loudly that you become deaf. She turns around and her face is all dark and bloody. Freaky huh? Yeah. Then she disappears suddenly, and you are trying to make your way out of the house fast. You are crawling on the floor, injured and afraid. You hit a dead end. Standing before you is a tall figure holding a machete. You die..."); if (selection3.equalsIgnoreCase("leave")) System.out.println(" You decide to leave. You make your way down the staircase and out of the door. You are way down the road now, and you look back, only to see the little girl looking at you from the window."); if (selection2.equalsIgnoreCase("runaway")) System.out.print(" You quickly make your way back to the staircase and down to the front door and run away. You never crack the case of this mystery house..."); if (selection1.equalsIgnoreCase("right")) System.out.print("You make your way to the right side of the upstairs floor. Nothing really is going on there so you decide to go back... As soon as you turn around, there is a tall figure right infront of you wearing a mask and holding a machete. He chops your head off and you die... "); if (selection0.equalsIgnoreCase("firstfloor")) System.out.print("You walk around the first floor for a while. Nothing is really going on here, you say to yourself. Then there is a sudden earthquake. The ceiling falls on you and you get crushed. Unfortunately you die without finding out the secrets of this mystery house... You should have gone upstairs..."); System.out.println(); System.out.println(); System.out.println(); } }