more words
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user