unlock all words
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { extraWords } from './extra-words.mjs';
|
||||
import { DICTIONARY_SET } from '../src/data/lexicon.js';
|
||||
|
||||
@@ -41,13 +39,3 @@ for (const item of targetWordsPool) {
|
||||
}
|
||||
|
||||
console.log('Target words pool verified! Total words:', targetWordsPool.length);
|
||||
|
||||
// Puzzles are generated from this pool at runtime (src/engine/generator.js):
|
||||
// daily puzzles are seeded by date, unlimited puzzles are random.
|
||||
const puzzlesFileContent = `// Target word pool for generated Quartiles puzzles (built by scripts/build-all-data.mjs)
|
||||
export const TARGET_WORDS_POOL = ${JSON.stringify(targetWordsPool, null, 2)};
|
||||
`;
|
||||
|
||||
fs.mkdirSync('src/data', { recursive: true });
|
||||
fs.writeFileSync('src/data/puzzles.js', puzzlesFileContent, 'utf8');
|
||||
console.log('Saved src/data/puzzles.js successfully!');
|
||||
|
||||
Reference in New Issue
Block a user