Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
muktar1907 committed Apr 30, 2024
1 parent fa1046a commit b3e005c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions html/index_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ <h2>Leaderboard</h2>
let playerData;

console.log(nick+"has joined");
console.log(messageData.ready==="true");
// console.log(messageData.ready==="true");

if("ready" in messageData && messageData.ready==="true")
if("ready" in messageData && messageData.ready==="true" && messageData.gameId==gameId)
{
console.log(messageData.gameId);
//access grid when gameStart is called
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/uta/cse3310/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ public boolean wordChosen(String selectedWord, Player player) {
}
return true;
}
else{return false;}
else
{
return false;
}

}

Expand Down
1 change: 1 addition & 0 deletions src/test/java/uta/cse3310/gameTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public void testUpdate()
System.out.println(wordList.get(i));
}
System.out.println(wordList.size());
System.out.println(var);
assertTrue(wordList.size()==5);

}
Expand Down

0 comments on commit b3e005c

Please sign in to comment.