Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.Random;
- import java.util.Scanner;
- import java.util.concurrent.ThreadLocalRandom;
- public class HangMan {
- public static void main(String[] args) {
- Random rand = new Random();
- Scanner scan = new Scanner (System.in);
- int options = 2, storeInBoard = 0, numOfGuess = 0;
- String name, words;
- boolean Correct = false;
- while(options == 2)
- {
- System.out.println("Welcome to Hangman!");
- System.out.println("Would you like to: ");
- System.out.println("1) Play Hangman.");
- System.out.println("2) Quit");
- options = scan.nextInt();
- }
- while(options == 1)
- {
- /*for(int i = 0; i < numOfGuess; i++)
- {
- String[] apples = new String[6];
- apples[1] = ("a");
- String[] banana = new String[6];
- String[] orange = new String[6];
- String[] lemons = new String[6];
- System.out.println("Pick one letter A-Z");
- Object userArray = scan.toString();
- }*/
- ArrayList<String> Words = new ArrayList<String>();
- Words.add("josh");
- Words.add("faggot");
- Words.add("bitch");
- Words.add("jews");
- Words.add("josh is gay");
- Words.add("fuck bitches get money");
- Words.add("lolwin");
- String word = Words.get(ThreadLocalRandom.current().nextInt(0, Words.size()));
- for(int i = 0; i<=1; i++)
- {
- System.out.println(word);
- }
- while(numOfGuess >= 6){
- }
- }
- while(options == 2)
- {
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement