Skip to main content

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.

Metadata

Release files for suggest-five 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for suggest-five 0.0.2
File Size Uploaded
suggest-five-0.0.2.tar.gz 18.4 kB Details

Release files / suggest-five-0.0.2.tar.gz

Download URL suggest-five-0.0.2.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4ff89a92fb5c66263486685cdba0daabc9942a7386d0b1efeaf59239927b52a7
BLAKE2b-256 checksum
How to use checksums
0bbcb709062461d6b0d865eaefff2222b3dfb5032ec44ba19ce189d254a96d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page