diff --git a/client/public/scrabble/game.js b/client/public/scrabble/game.js index a81ff90..d48e7ac 100644 --- a/client/public/scrabble/game.js +++ b/client/public/scrabble/game.js @@ -15,10 +15,22 @@ function initGame(boardstate, tileset, myplayer, players) let drawerStructure = []; for (const tile of myplayer.activetiles) { + + let points = 0; + // for (const pointband of tileset) + // { + // console.log(pointband) + // } + + const piece = { + letter: tile, + score: points + } + drawerStructure.push(piece); console.log(tile); } - addPiecesToDrawer(); + addPiecesToDrawer(drawerStructure); return true; } diff --git a/client/public/scrabble/index.html b/client/public/scrabble/index.html index f34132d..c102649 100644 --- a/client/public/scrabble/index.html +++ b/client/public/scrabble/index.html @@ -294,13 +294,13 @@
- Ç8 +