more words2

This commit is contained in:
2026-10-24 14:34:22 -04:00
parent f07b5fdadf
commit 79e15cb8c3
8 changed files with 66595 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
import { CURATED_PUZZLES } from '../data/puzzles.js';
import { getRankInfo, QUARTILE_COMPLETION_BONUS, POINTS_BY_TILE_COUNT } from '../engine/constants.js';
import { DICTIONARY_SET } from '../data/lexicon.js';
import { isAcceptedWord } from '../data/lexicon.js';
class GameStateManager {
constructor() {
@@ -178,7 +178,7 @@ class GameStateManager {
entry.isBonus = false;
filteredEntries.push([key, entry]);
recalculatedScore += matchedWord.points;
} else if (entry && DICTIONARY_SET.has(key)) {
} else if (entry && isAcceptedWord(key)) {
// Valid word beyond the displayed 30-word list
entry.isBonus = true;
entry.points = POINTS_BY_TILE_COUNT[entry.tileCount] || 1;
@@ -448,7 +448,7 @@ class GameStateManager {
// Any real word built from the tiles counts, even if it was cut from the
// displayed 30-word list (accepted as a bonus word)
const isBonus = !listed && DICTIONARY_SET.has(constructedWord);
const isBonus = !listed && isAcceptedWord(constructedWord);
const match = listed || (isBonus ? { points: POINTS_BY_TILE_COUNT[tileCount] || 1 } : null);
if (!match) {