Suggest answers for a popular five-letter word game.
Project description
suggest-five
Suggest answers for a popular five-letter word game.
Usage
suggest-five
takes as an argument a text file which should contain all possible puzzle answers, one per line:
$ suggest-five -a answers.txt
The official word list may be downloaded from several locations. As an alternative, a list of five-letter words can be generated using the python module wordfreq.
Once loaded, the programme will suggest a series of words. After each word, you should let suggest-five
know the
results from using that word by pressing G to denote a correct match, Y to denote a letter in the wrong position
and B to denote an incorrect letter.
How it works
The current algorithm is still quite naïve. It uses the feedback from the game to filter its word list without doing anything much smarter. For example, if you report that the letter X is ⬛, future suggestions will omit any words with an X.
Performance
Performance is measured using the original official word list. Across all words, the average number of attempts needed to guess each word was 4.35 and the algorithm failed to guess the correct word in 6 attempts 2.5% of the time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file suggest-five-0.0.2.tar.gz
.
File metadata
- Download URL: suggest-five-0.0.2.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ff89a92fb5c66263486685cdba0daabc9942a7386d0b1efeaf59239927b52a7 |
|
MD5 | eaa49339ebe00a0b89605f5d6fcb5618 |
|
BLAKE2b-256 | 0bbcb709062461d6b0d865eaefff2222b3dfb5032ec44ba19ce189d254a96d5c |