@gueripep/wordle-solver
Version:
A Wordle solver using entropy maximization and information theory
34 lines • 843 B
TypeScript
/**
* Data access layer for the Wordle word list
*/
export declare class WordListRepository {
private static instance;
private wordListCache;
private constructor();
/**
* Get singleton instance of WordListRepository
*/
static getInstance(): WordListRepository;
/**
* Reads the word list from the wordle.csv file
* @returns string[] - Array of words from the CSV file
*/
getWordList(): string[];
/**
* Check if a word exists in the word list
*/
isValidWord(word: string): boolean;
/**
* Get word list count
*/
getWordCount(): number;
/**
* Clear cache (useful for testing)
*/
clearCache(): void;
}
/**
* Convenience function to get word list
*/
export declare function getWordList(): string[];
//# sourceMappingURL=word-list.d.ts.map