Skip to content

Commit

Permalink
Testing game functionality without random words chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-tieu committed Aug 7, 2024
1 parent 2c4a50b commit adc90de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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.currentWord1 = "apple"; // for testing purposes
this.currentWord2 = "banana";
this.currentWord3 = "cherries"; */
List<String> words = loadWordsFromFile("src/filtered_words.txt");
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 adc90de

Please sign in to comment.