Advertisement
davidjack4

Untitled

Oct 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 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("l"))
  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.  
  39.  
  40. }
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement