UNPKG

@gueripep/wordle-solver

Version:

A Wordle solver using entropy maximization and information theory

22 lines 1.14 kB
import { GuessFeedbackInformations, HighestEntropyResult } from './types.js'; /** * Calculates the probability of each possible return value for a given guess * @param guess - The 5-letter guess word * @param wordList - Optional word list to use, defaults to the full word list * @returns array of probabilities for each GuessFeedback */ export declare function calculateLetterStateProbabilities(guess: string, wordList?: string[]): GuessFeedbackInformations[]; /** * Calculates the average entropy (expected self-information) for a given guess * @param guess - The 5-letter guess word * @param wordList - Optional word list to use, defaults to the full word list * @returns average entropy value */ export declare function calculateAverageEntropy(guess: string, wordList?: string[]): number; /** * Calculates the highest entropy guess from the word list * @param wordList - Optional array of words to use, defaults to the full word list * @returns object with the guess and its average entropy */ export declare function findHighestEntropyGuess(wordList?: string[]): HighestEntropyResult; //# sourceMappingURL=entropy.d.ts.map