From 446ce68581ffd18c6b45acc581e0993a75aa42c5 Mon Sep 17 00:00:00 2001 From: Ramon Torres Date: Sun, 4 Aug 2024 19:12:59 -0500 Subject: [PATCH] solving puzzel now works --- src/main/java/uta/cse3310/Round.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/uta/cse3310/Round.java b/src/main/java/uta/cse3310/Round.java index 6a792bc..12faa4d 100644 --- a/src/main/java/uta/cse3310/Round.java +++ b/src/main/java/uta/cse3310/Round.java @@ -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;