diff --git a/.gitignore b/.gitignore
index 96b57de..c8ef4c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,4 @@ client/node_modules/
server/node_modules/
*.log
*.env
-.turns-debug.json
+turns-debug.json
diff --git a/README.md b/README.md
index 3a4b162..f889cf6 100644
--- a/README.md
+++ b/README.md
@@ -34,12 +34,17 @@ or just use environment variables
### Bugs and Issues
+Prettymuch all of the bugs i'm aware of occur when a user reconnects to a game that's taking place. ESPECIALLY if that user is the host of the game
+
### Contributing
-To contribute a translation
+To contribute a translation there's a few scripts that need to be run
+
+To see what needs to be completed code-wise, take a look at `TODO`, there you will find tasks that need to be completed as well as known bugs. There's also a lot of TODOs in the code :)
### Acknowledgements
Express.js - HTTP Routing and Management
Socket.io - Socket Routing and Management
+
Inês Filipa Baiõa Antunes - Tranlations (Portuguese, Spanish)
diff --git a/TODO b/TODO
index 493981a..e7c03f2 100644
--- a/TODO
+++ b/TODO
@@ -15,8 +15,8 @@
→ Update with new locales
✔ Spanish (Ines) @done(21-04-11 01:03)
→ Update with new locales
- → French (Alexendro)
- → Czech (Mikdore)
+ ✘ French (Alexendro) @cancelled(21-05-10 18:22)
+ ✘ Czech (Mikdore) @cancelled(21-05-10 18:22)
→ Go through code again once finished and pick out locales
☐ Lobbying logic
@@ -28,14 +28,14 @@
→ Find appropriate scrabble dictionary for
✔ Portuagese @done(21-04-19 02:10)
✔ Spanish @done(21-04-19 02:10)
- ✔ French @done(21-04-19 02:10)
- → Czech
+ ✔ French @done(21-05-10 18:22)
+ ✘ Czech @cancelled(21-05-10 18:22)
→ Optimise! n-ary tree
☐ Game networking
- → Figure out game reconnection procedure
- → Perhaps players skip a turn if they disconnect on their turn
- → Game should go on until 1 person remains
+ ✔ Figure out game reconnection procedure @done(21-05-10 18:22)
+ ✘ Perhaps players skip a turn if they disconnect on their turn @cancelled(21-05-10 18:22)
+ ✘ Game should go on until 1 person remains @cancelled(21-05-10 18:22)
→ Game chat
☐ Game logic
@@ -52,13 +52,13 @@
✔ Update dynamically @done(21-05-09 22:44)
☐ Code
- → Refactor to code portsoc eslint
- → Refactor game client
+ ✘ Refactor to code portsoc eslint @cancelled(21-05-10 18:22)
+ ✘ Refactor game client @cancelled(21-05-10 18:22)
→ WHY THE HELL ARE THEY CALLED USERS IN SOME PLACES AND PLAYERS IN OTHERS
→ Why in some places is it user.name and others user.username
+ → Should lobbies persist once game starts?
☐ Bugfixes
- → If a user leaves their current game then makes a new one, it's corrupted
+ ✔ If a user leaves their current game then makes a new one, it's corrupted @done(21-05-10 17:56)
→ If a user disconnects during a game, the game is irrevokably corrupted
-
-
+ → Usually, if a player leaves, it's fine, but if the host leaves. The lobbby is destructed and the logic creates a new game on the spot and they're the only player
diff --git a/client/public/game/lobbies.js b/client/public/game/lobbies.js
index cb9c095..40e262c 100644
--- a/client/public/game/lobbies.js
+++ b/client/public/game/lobbies.js
@@ -162,10 +162,10 @@ socket.on('lobby-create-error', obj => {
const errorDiv = document.createElement('div');
errorDiv.id = 'lobby-error';
- errorDiv.innerHTML = localeString('error-bold') + ' ' + localeString('error-creating-lobby') + ' ' + JSON.stringify(args);
+ errorDiv.innerHTML = localeString('error-bold') + ' ' + localeString('error-creating-lobby') + ' ' + JSON.stringify(obj);
errorDiv.classList.add('red');
CreateLobbyBlock.appendChild(errorDiv);
- pageLog(localeString('error-bold') + ' ' + localeString('error-creating-lobby') + ' ' + JSON.stringify(args));
+ pageLog(localeString('error-bold') + ' ' + localeString('error-creating-lobby') + ' ' + JSON.stringify(obj));
});
diff --git a/client/public/scrabble/game.js b/client/public/scrabble/game.js
index eceea47..89e1a34 100644
--- a/client/public/scrabble/game.js
+++ b/client/public/scrabble/game.js
@@ -20,6 +20,7 @@ NOTES
let Users = [];
// just shorthand, so long as i remember to keep it updated lmao
let MyTurn = false;
+let TileSet = [];
let pastTurns = [];
@@ -27,6 +28,8 @@ function initGame(boardstates, tileset, myplayer, players)
{
pastTurns.push(...boardstates);
+ TileSet = tileset;
+
// construct piece array
// structure [{letter: '', score: int}]
let drawerStructure = [];
diff --git a/client/public/scrabble/index.html b/client/public/scrabble/index.html
index b98b4aa..0a446c8 100644
--- a/client/public/scrabble/index.html
+++ b/client/public/scrabble/index.html
@@ -341,12 +341,12 @@
-
+