Skip to content

Commit

Permalink
solving puzzel now works
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonTorresUta committed Aug 5, 2024
1 parent 9784e42 commit 446ce68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/uta/cse3310/Round.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ private void processGuess(Player currentPlayer, char guessedLetter) {
System.out.println("Correct guess!");
int points = stake.calculatePoints(guessedLetter);
currentPlayer.addScore(points);
correctguesses.add(guessedLetter);
System.out.println("Player " + currentPlayer.getName() + " awarded " + points + " points.");
//word.getWordProgress(wordsforgame, correctguesses);
System.out.println("\ncorrect guesses: " + correctguesses);
if (correctguesses.equals(lettersinword)) {
System.out.println("Word guessed correctly! Round over.");
isRoundActive = false;
Expand Down

0 comments on commit 446ce68

Please sign in to comment.