Skip to content

Commit

Permalink
Update App.java to display winner
Browse files Browse the repository at this point in the history
  • Loading branch information
Antenehden authored Aug 12, 2024
1 parent 0bb8b3d commit 760686c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/uta/cse3310/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public void onMessage(WebSocket conn, String message) {
// After processing the input, determine if the turn should continue or advance
if (!game.getCurrentRound().isRoundActive()) {
game.moveToNextRoundOrEndGame();
broadcastToGame(game, new Gson().toJson(game));
} else if (!game.correctGuess) {
// Advance to the next turn
game.getCurrentRound().advanceTurn();
Expand Down Expand Up @@ -218,4 +219,4 @@ public static void main(String[] args) {
webSocketServer.start();
System.out.println("WebSocket server started on port: " + wsPort);
}
}
}

0 comments on commit 760686c

Please sign in to comment.