more words

This commit is contained in:
2026-10-24 12:50:19 -04:00
parent cf18b5a99e
commit 9e44b07e98
10 changed files with 9241 additions and 3697 deletions

View File

@@ -72,6 +72,13 @@ export function solveBoard(quartets, maxWords = 30) {
const quartilesList = quartets.map(q => q.join('').toLowerCase());
const quartileSet = new Set(quartilesList);
// Target quartiles are always valid, even if missing from the dictionary
quartilesList.forEach((word, qIdx) => {
if (!foundMap.has(word)) {
foundMap.set(word, [qIdx * 4, qIdx * 4 + 1, qIdx * 4 + 2, qIdx * 4 + 3]);
}
});
let words = [];
for (const [word, path] of foundMap.entries()) {