diff --git a/client/public/scrabble/game.js b/client/public/scrabble/game.js index 88da4a9..1ad1374 100644 --- a/client/public/scrabble/game.js +++ b/client/public/scrabble/game.js @@ -79,12 +79,22 @@ function initGame(boardstates, tileset, myplayer, players) function startMyTurn() { - + for (const user in Users) + { + if (Users[user].me) Users[user].turn = true; + else Users[user].turn = false; + } + updateUsersUI(Users); } function startOthersTurn(useruid) { - + for (const user in Users) + { + if (Users[user].uid === useruid) Users[user].turn = true; + else Users[user].turn = false; + } + updateUsersUI(Users); } function playMyTurn(stagedpieces)