Advertisement
Guest User

Haunted House

a guest
Oct 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.76 KB | None | 0 0
  1. package austin.llcs.main;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main
  6.     {
  7.  
  8.         public static void main(String[] args)
  9.             {
  10.                   Scanner input = new Scanner(System.in);
  11.                   String response;
  12.                  
  13.                   System.out.println("You stand at the entrance to the Boone Hall Haunted House. You see two rooms, one on the left and one on the right. Would you like to 'turn left' or 'turn right' ?");
  14.                   response = input.nextLine();
  15.                  
  16.                   if (response.equals("turn right"));
  17.                       {
  18.                           System.out.println("You see a collection of spider webs in the corner, a few small carved pumpkins that are carved and lit up via candle light, and there is a door on the back wall. Out of the corner of your eye you see a small movement. Would you like to 'investigate the movement' or 'go through the door' ?");
  19.                           response = input.nextLine();
  20.                       }
  21.                      
  22.                  if (response.equals("turn left"));
  23.                       {
  24.                           System.out.println("You enter a dark hallway, with the soft orange light of an elevator's up button glowing in the darkness. It seems the down button has been removed. On the way down the hall, you see a door way in the middle of the wall. You think to yourself about how odd that placement is for a door. Would you like to 'enter the elevator' or 'go through the door' ?");
  25.                           response = input.nextLine();
  26.                           if (response.equals("enter elevator"));
  27.                               {
  28.                                   System.out.println("You hit the up button and the doors open for you to enter. You watch the doors close and you begin to feel it shake as it rises. All of a sudden, you've stopped moving and the lights have cut out! Written in Glow-in-the-Dark Paint, the words 'Welcome to our escape room.' Would you like to 'solve the room' or 'cry for help' ?");
  29.                               }
  30.                       }
  31.  
  32.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement