Just like the original Wordle, you have to guess a 5-letter word in 6 tries and it tells you how many letters are correct and in the right position, how many are correct but in the wrong position, and how many are not in the word at all. The only difference is that this one is played in the terminal. It's a great SSH toy for when you're bored.
The game is written in Python and uses the termcolor
library for coloured output. Since it
uses colorama
, it works on Windows as well as Unix-like systems.
You can also customise the game quite a bit. You can change the number of tries, the list of words to guess from (and length will be inferred from that), and the list of words to randomly choose an answer from. You can also enable the analyser, which shows all the letters that have been found so far. Let's make someone play it with the full dictionary :)
There is also a hard mode, where you must use all the letters that have been found in your guesses.
usage: tty-wordle [-h] [-a] [-x] [--delay DELAY] [-l WORDS] [-n ANSWERS] [-t GUESSES] A Wordle for your console. options: -h, --help show this help message and exit -a, --analyser add the analyser, a row of all found letters -x, --hard enable hard Wordle: you must use all found letters in your guesses --delay DELAY time to show error messages for, in seconds -l WORDS, --list WORDS file to pull allowed guesses from -n ANSWERS, --answers ANSWERS file to pull a random answer from -t GUESSES, --tries GUESSES number of tries
Also, this is how the analyser looks like:
If you press ^C it asks you whether you want to give up or not. If you do, it shows you the answer. If you don't, it continues the game. You can press ^C again to close it and never see the answer.
Licence
Apache 2.0