From b93c91243f141bc3bf45aa6cb3bbb4f52fbbab91 Mon Sep 17 00:00:00 2001 From: Ben Kyd Date: Fri, 7 May 2021 00:13:27 +0100 Subject: [PATCH] fixed bug whereby non identified user would get constantly redirected until chrome blocked it --- client/public/scrabble/game.js | 14 +++++++++++++- client/public/scrabble/index.html | 4 ++-- client/public/scrabble/network.js | 9 +++++---- client/public/scrabble/pieces.js | 21 ++++++++++++--------- 4 files changed, 32 insertions(+), 16 deletions(-) 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 +