Advertisement
davidjack4

project

Oct 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. package main.hyatt.jackson.llcs;
  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.  
  12. String response;
  13.  
  14. System.out.println("A man goes in to the woods in an act of careless trespassing and sees a house. would you like for the man to go 'toward the house', or back out 'into the woods'.");
  15. response = input.nextLine();
  16.  
  17. if (response.equals("toward the house"))
  18. {
  19. System.out.println("When you go to the house the door opens. Would you like to 'go inside' or 'walk away'");
  20. response = input.nextLine();
  21.  
  22. if (response.equals("go inside"))
  23. {
  24. System.out.println("So you choose to go inside and you hear a window shatter do you 'run upstairs' or 'turn left'");
  25. response = input.nextLine();
  26.  
  27. if (response.equals("run upstairs then you get hit with an axe"))
  28. {
  29. System.out.println("So you choose to go inside and you hear a window shatter do you 'run upstairs' or 'turn left'");
  30. response = input.nextLine();
  31.  
  32. if (response.equals("turn left"))
  33. {
  34. System.out.println("you walk into the living room and see a dark silowet in the corner. It dissapears into the darkness and you hear footsteps behind you. You were killed");
  35. response = input.nextLine();
  36. }
  37. }
  38. if (response.equals("turn left"))
  39. {
  40. System.out.println("you walk into the living room and see a dark silhouette in the corner. It dissapears into the darkness and you hear footsteps behind you. You dart behind a couch. You feel a heavy, cold, sharp peice of metal make quick contact with your neck. The house you enterd belonged to a poacher who thought that you were a cop trying to turn him in. He made sure that you were not a possible threat. You were killed.");
  41. response = input.nextLine();
  42. }
  43. }
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement