Assignemnt #45 and tinyadventure Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: tinyadventure /// File Name: tinyadventure.java /// Date Finished: 11/17/2015 import java.util.Scanner; public class tinyadventure { public static void main( String[] args ) { Scanner input = new Scanner(System.in); String selection0, selection1, selection2, selection3; System.out.println(); System.out.println(); System.out.println( "WELCOME TO YORDAN'S ADVENTURE!" ); System.out.println(); System.out.println(); System.out.print( " You are in a creepy old house. You hear noises coming from 2 directions; behind you and in front of you. Located behind you is the bathroom. Located in front of you is the kitchen. Would you like to go to see the \"bathroom\" or the \"kitchen\"?\n> " ); selection0 = input.nextLine(); System.out.println(); if (selection0.equalsIgnoreCase("bathroom")) System.out.print("When you go in the bathroom, you continue to hear the noise. It appears as if the noise doesn't just come from the bathroom, but from the kitchen too. Now that you're in the bathroom, you investigate it a little bit. Then you see that the shower curtain is closed, and the sound is coming from there. Also, the sound continues to come from the kitchen aswell. Would you like to open the \"curtain\" or to just \"ignore\"?\n> "); selection1 = input.nextLine(); System.out.println(); if (selection1.equalsIgnoreCase("curtain")) System.out.print("You open the curtain. You look but nothing is there. Only the water is running and is making a quiet sound from the pipes. Now you decide to leave this house. However, right before you open the entry door, you hear the sound again, however this time coming from the kitchen. Would you like to go in the \"kitchen\" or \"leave\"?\n> "); selection2 = input.nextLine(); System.out.println(); if (selection2.equalsIgnoreCase("ignore")) System.out.print("You have ignored the sound coming from the other side of the curtain. You are now thinking about leaving. However, you hear the noise once more, although this time it is coming only from the kitchen. Would you like to go in the \"kitchen\" or \"leave\"?\n> "); selection3 = input.nextLine(); System.out.println(); if (selection3.equalsIgnoreCase("kitchen")) System.out.println("You go into the kitchen. As soon as you enter it is dead silent. There is a blood everywhere. You are scared for your life. You don't know what to do. You decide to run for your life. When you turn around, an 8-foot man is standing infront of you with a hockey mask, holding a machete. YOU DIE!"); System.out.println(); if (selection0.equalsIgnoreCase("kitchen")) System.out.print("You go into the kitchen. As soon as you enter it is dead silent. There is a blood everywhere. You are scared for your life. You don't know what to do. You decide to run for your life. When you turn around, an 8-foot man is standing infront of you with a hockey mask, holding a machete. YOU DIE!"); System.out.println(); if (selection2.equalsIgnoreCase("leave")) System.out.println("You leave the house. This way, you will never find out what happens..."); System.out.println("Thanks for playing!"); System.out.println(); System.out.println(); } }