many many fixes
This commit is contained in:
@@ -8,16 +8,15 @@
|
||||
import fs from 'node:fs';
|
||||
import { createRequire } from 'node:module';
|
||||
import { buildWordSet } from './lexicon-sources.mjs';
|
||||
import { TARGET_WORDS_POOL, CURATED_PUZZLES } from '../src/data/puzzles.js';
|
||||
import { TARGET_WORDS_POOL } from '../src/data/puzzles.js';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const REFERENCE = require('an-array-of-english-words');
|
||||
const OUT_FILE = 'scripts/combo-words.txt';
|
||||
|
||||
// Every tile that can appear on a board (random + daily puzzles)
|
||||
// Every tile that can appear on a board (all puzzles are generated from the pool)
|
||||
const chunks = new Set();
|
||||
TARGET_WORDS_POOL.forEach(t => t.tiles.forEach(c => chunks.add(c.toLowerCase())));
|
||||
CURATED_PUZZLES.forEach(p => p.quartets.flat().forEach(c => chunks.add(c.toLowerCase())));
|
||||
const maxChunkLen = Math.max(...[...chunks].map(c => c.length));
|
||||
|
||||
// Base dictionary WITHOUT the previously generated combo list, so re-runs are stable
|
||||
|
||||
Reference in New Issue
Block a user