fix special case factor
authorLaurent Mazet <mazet@softndesign.org>
Sat, 2 Aug 2025 20:44:10 +0000 (22:44 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 2 Aug 2025 20:44:10 +0000 (22:44 +0200)
public/trivabble.js

index fc1a0ab8647921bf0fbbcbc0045ad2b6f6ad6714..105f88936451c94f6ce6981fa59b36adab8b0619 100644 (file)
                 let letterFactor = 1;
 
                 /* Is a freshly played letter? */
-                if (getLetterFromBoard(word.row, word.col) === word.letters[l]) {
+                if (currentTileOwner[index]) {
 
                     /* Letter factor */
                     if (boardCells[index].classList.contains("special-cell-doubleLetter")) {