wordle-shell
Version:
A Wordle for the command line
28 lines (27 loc) • 678 B
TypeScript
export declare enum CharState {
Correct = 0,
Misplaced = 1,
Wrong = 2,
Unknow = 3
}
declare class Wordle {
private static words_size;
private word;
private words;
constructor(wordPicker: {
getWord: () => string;
getWordList: () => string[];
});
private ensureWordLength;
static done(states: CharState[]): boolean;
static get_word_size(): number;
private checkIfMisplaced;
private checkAllCorrets;
private checkAllMismatches;
private checkAllWrongs;
private createStates;
checkWord(guess: string): CharState[];
private ensureWordPossible;
getWord(): string;
}
export default Wordle;