Closed jameelhassan closed 1 year ago
Got this sorted. The codebase as it is, is correct
Lets say I choose the word CRANE. In order to get all greys, it means that the ANSWER shud not have any of the letters in “crane”. So the probability of getting all greys is the number of ANSWER WORDS without any of the letters in “crane” divided by the total number of words in the answer list.
As per the source code below, to calculate the pattern distribution, it uses _possiblewords to generate the distribution. Instead, shouldn't we use _allowedwords for this, since any of the allowed words can be generating a given pattern. ie: the function call should be get_pattern_matrix(allowed_words, allowed_words) ??