Advertisement
Guest User

LITERALLYFUCKYOUTHOMASTHERETARDENGINE

a guest
Apr 26th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Random;
  3. import java.util.Scanner;
  4. import java.util.concurrent.ThreadLocalRandom;
  5. public class HangMan {
  6.  
  7. public static void main(String[] args) {
  8. Random rand = new Random();
  9. Scanner scan = new Scanner (System.in);
  10. int options = 2, storeInBoard = 0, numOfGuess = 0;
  11. String name, words;
  12. boolean Correct = false;
  13. while(options == 2)
  14. {
  15. System.out.println("Welcome to Hangman!");
  16. System.out.println("Would you like to: ");
  17. System.out.println("1) Play Hangman.");
  18. System.out.println("2) Quit");
  19. options = scan.nextInt();
  20. }
  21. while(options == 1)
  22. {
  23. /*for(int i = 0; i < numOfGuess; i++)
  24. {
  25.  
  26. String[] apples = new String[6];
  27. apples[1] = ("a");
  28. String[] banana = new String[6];
  29. String[] orange = new String[6];
  30. String[] lemons = new String[6];
  31.  
  32. System.out.println("Pick one letter A-Z");
  33. Object userArray = scan.toString();
  34.  
  35. }*/
  36. ArrayList<String> Words = new ArrayList<String>();
  37. Words.add("josh");
  38. Words.add("faggot");
  39. Words.add("bitch");
  40. Words.add("jews");
  41. Words.add("josh is gay");
  42. Words.add("fuck bitches get money");
  43. Words.add("lolwin");
  44.  
  45. String word = Words.get(ThreadLocalRandom.current().nextInt(0, Words.size()));
  46. for(int i = 0; i<=1; i++)
  47. {
  48. System.out.println(word);
  49. }
  50.  
  51.  
  52.  
  53. while(numOfGuess >= 6){
  54.  
  55.  
  56.  
  57. }
  58. }
  59.  
  60. while(options == 2)
  61. {
  62. break;
  63. }
  64.  
  65.  
  66. }
  67.  
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement