By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 wordle.md

View raw Download
text/plain • 2.14 kiB
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.

A game of teletype Wordle

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:

The analyser in teletype Wordle

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