wordle.md
ASCII text
title: Teletype Wordle source-url: https://roundabout-host.com/roundabout/tty-wordle topics: ["game", "python", "terminal", "apache", "fun", "teletype wordle"] ---
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
1--- 2title: Teletype Wordle 3source-url: https://roundabout-host.com/roundabout/tty-wordle 4topics: ["game", "python", "terminal", "apache", "fun", "teletype wordle"] 5--- 6 7Just like the original Wordle, you have to guess a 5-letter word in 6 tries and it tells you 8how many letters are correct and in the right position, how many are correct but in the wrong 9position, and how many are not in the word at all. The only difference is that this one is 10played in the terminal. It's a great SSH toy for when you're bored. 11 12The game is written in Python and uses the `termcolor` library for coloured output. Since it 13uses `colorama`, it works on Windows as well as Unix-like systems. 14 15![A game of teletype Wordle](/static/photos/wordle.png) 16 17You can also customise the game quite a bit. You can change the number of tries, the list of 18words to guess from (and length will be inferred from that), and the list of words to randomly 19choose an answer from. You can also enable the analyser, which shows all the letters that have 20been found so far. Let's make someone play it with the full dictionary :) 21 22There is also a hard mode, where you must use all the letters that have been found in your 23guesses. 24 25``` 26usage: tty-wordle [-h] [-a] [-x] [--delay DELAY] [-l WORDS] [-n ANSWERS] [-t GUESSES] 27 28A Wordle for your console. 29 30options: 31-h, --help show this help message and exit 32-a, --analyser add the analyser, a row of all found letters 33-x, --hard enable hard Wordle: you must use all found letters in your guesses 34--delay DELAY time to show error messages for, in seconds 35-l WORDS, --list WORDS 36file to pull allowed guesses from 37-n ANSWERS, --answers ANSWERS 38file to pull a random answer from 39-t GUESSES, --tries GUESSES 40number of tries 41``` 42 43Also, this is how the analyser looks like: 44 45![The analyser in teletype Wordle](/static/photos/wordle-analyser.png) 46 47If you press ^C it asks you whether you want to give up or not. If you do, it shows you the 48answer. If you don't, it continues the game. You can press ^C again to close it and never see 49the answer. 50 51Licence 52------- 53 54Apache 2.0 55