View all files | ||||
This works follow Jim Hall's post on Solving Wordle using the GNU/Linux commands. It automates the greping processes and should work with any POSIX shell.
Table of contents:
For other concerns, bugs submission and features requierement, go the tracker. You are also encouraged to clone this project, work on it, then make a merge request. Also feel free to distribute it. In any case, respect the GPLv3 license.
The concept of Wordle can be found on many websites. Here is an not exhaustive list:
Tips and history about the game can be found here and there etc. Wordle isn't so new… Motus in France and Lingo in United Kingdom and many other countries predate it. Those games are also available for your desktop operating system or your smartphone. If you enjoy such game, there are some others you may appreciate too except that this script won't be helpful for them.
Either clone the repository:
or just download the script and make it executable:
In both case, ensure the script is in your path (i.e. ~/bin here.)
The script uses three arguments:
When launched without one of the arguments, it swithes to interactively inputing them.
Before starting, prepare your restricted words list, then put it's path into the environment variable WORDLE_LIST prior. Example:
Note that:
By the same way, you can change the number of propositions displayed with the environment variable WORDLE_SHOW. To play some other variant, set the length into the environment variable WORDLE_SIZE and that's all.
Here, with myguess having 8497 entries (but without: bailo, bauld and baulk), the arguments 'ba...' '..l..' 'cresmy' found out:
Have fun.