Skip to content

Commit

Permalink
show grid generation time v2
Browse files Browse the repository at this point in the history
  • Loading branch information
axjh03 committed May 1, 2024
1 parent f016fd3 commit 576375a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/uta/cse3310/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void broadcastGameRooms() {
// Include grid generation time in the info
double gridTime = game.getGridGenerationTime();
String formattedGridTime = String.format("%.4f", gridTime);
roomInfo.put("gridGenerationTime", formattedGridTime + " seconds"); // Append " seconds" for clarity
roomInfo.put("gridGenerationTime", formattedGridTime); // Append " seconds" for clarity

// Add the room info to the list for broadcasting
gameRoomsInfo.add(roomInfo);
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</div>

<button id="resetGame">Reset Game</button>
<p>Please give about 5 seconds for the game to start... </p>
<p>Please give about 5 seconds for the game to reset... </p>

<h3>Player's Online List :</h3>
<ul id="playerList"></ul>
Expand Down

0 comments on commit 576375a

Please sign in to comment.