reset list of moved tiles after scoring
authorLaurent Mazet <mazet@softndesign.org>
Mon, 23 Nov 2020 21:45:30 +0000 (22:45 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 23 Nov 2020 21:45:30 +0000 (22:45 +0100)
public/trivabble.js

index 4aaf1c0d586ae5d1d4cbc5d8cd80f7d90d4609cf..3ee40adcca17ed68b200d684f69000383327d973 100644 (file)
 
             if (Object.prototype.hasOwnProperty.call(player, "score")) {
                 const scoreCell = getScoreCell(playerName);
+                if (scoreCell.textContent != player.score) {
+                    currentTilePlayed = {};
+                }
                 scoreCell.textContent = player.score;
                 blink(scoreCell);
             }