diff --git a/html/index.html b/html/index.html index a6792de..dbf7506 100644 --- a/html/index.html +++ b/html/index.html @@ -77,8 +77,6 @@ padding: 5px 20px; border-radius: 5px; } - - /* Additional CSS styles can go here */ @@ -227,6 +225,8 @@

Leaderboard

// Add code here to highlight the word in the grid with the specified color console.log("Highlighting word '" + word + "' with color: " + color); } + + window.onload = function() { // Create a WebSocket connection to the server var serverUrl = "ws://" + window.location.hostname + ":9108"; diff --git a/src/test/java/uta/cse3310/GameLogicTest.java b/src/test/java/uta/cse3310/GameLogicTest.java index 12cab80..8f363c4 100644 --- a/src/test/java/uta/cse3310/GameLogicTest.java +++ b/src/test/java/uta/cse3310/GameLogicTest.java @@ -89,7 +89,7 @@ public void testCalculateFillerPercentage() { @Test public void testCheckColumns() { gameLogic.gridGenerator(); // Generate a random word grid - assertFalse(gameLogic.checkColumns("XYZ")); // Assuming "XYZ" does not exist in any column + assertFalse(gameLogic.checkColumns("ARE")); // Assuming "XYZ" does not exist in any column } @Test diff --git a/target/test-classes/uta/cse3310/GameLogicTest$MockBroadcast.class b/target/test-classes/uta/cse3310/GameLogicTest$MockBroadcast.class index fe793f4..b69c4d5 100644 Binary files a/target/test-classes/uta/cse3310/GameLogicTest$MockBroadcast.class and b/target/test-classes/uta/cse3310/GameLogicTest$MockBroadcast.class differ diff --git a/target/test-classes/uta/cse3310/GameLogicTest.class b/target/test-classes/uta/cse3310/GameLogicTest.class index ea0fb81..916a565 100644 Binary files a/target/test-classes/uta/cse3310/GameLogicTest.class and b/target/test-classes/uta/cse3310/GameLogicTest.class differ