let blockMove = 0;
let remainingLetters = 0;
let needsRestart = false;
- const gameInProgress = false;
+ let gameInProgress = true;
let currentTilePlayed = {};
let eventSource = null;
myConfirm(
_("Your game is not over. Are you sure you want to leave now?"),
- function () {
- myAlert(
- format(
- _("You are about to leave the current game. To recover it, please note its number: {0}"),
- getSetting("GameNumber")
- ),
- f
- );
- }
+ f
);
}
participantPlaceholder = null;
}
+ let nbTilesInRacks = 0;
for (let i = 0; i < players.length; i++) {
const player = players[i];
const playerName = players[i].player;
const countCell = tablePlayers[playerName].childNodes[1];
countCell.textContent = player.rackCount;
blink(countCell);
+ nbTilesInRacks += player.rackCount;
}
}
refreshCurrentPlayer();
+ gameInProgress = (nbTilesInRacks + remainingLetters > 0);
}
function handleLastPlayer(data) {