Skip to content

Commit

Permalink
Added back randomizer for words
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-tieu committed Aug 10, 2024
1 parent 1d89682 commit 1363fa5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/uta/cse3310/Round.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public void startRound() {

// Choose a random word from the list
public void chooseRandomWord() {
this.currentWord1 = "apple"; // for testing purposes
this.currentWord2 = "banana";
this.currentWord3 = "cherries";
/*List<String> words = loadWordsFromFile("src/filtered_words.txt");
//this.currentWord1 = "apple"; // for testing purposes
//this.currentWord2 = "banana";
//this.currentWord3 = "cherries";
List<String> words = loadWordsFromFile("src/filtered_words.txt");
Random random = new Random();
if (words != null && !words.isEmpty()) {
int wordsToGuess = random.nextInt(3) + 1;
Expand All @@ -98,7 +98,7 @@ else if(wordsToGuess == 3) {
System.out.println("Chosen Word 2: " + currentWord2);
System.out.println("Chosen Word 3: " + currentWord3);

}*/
}
}

public void checkChar() {
Expand Down

0 comments on commit 1363fa5

Please sign in to comment.