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.html

View raw Download
text/html • 4.32 kiB
HTML document, Unicode text, UTF-8 text
        
            
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
<meta charset="UTF-8">
5
<title>
6
Teletype Wordle
7
</title>
8
<link rel="stylesheet" href="/static/style.css">
9
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10
</head>
11
<body>
12
<header>
13
<a href="#main" id="skip-link">Skip navigation</a>
14
<nav>
15
<ul>
16
<li><a href="/">Home</a></li>
17
<li><a href="/projects">Projects</a></li>
18
<li><a href="/index">Index</a></li>
19
<li><a href="/about">About</a></li>
20
<li><a href="https://roundabout-host.com/roundabout">Roundabout-host</a></li>
21
</ul>
22
<ul>
23
<li><a href="mailto:root@roundabout-host.com" id="mail-link">root@roundabout-host.com</a></li>
24
</ul>
25
</nav>
26
</header>
27
<main id="main">
28
29
<div class="project-title">
30
<h1>
31
Teletype Wordle
32
</h1>
33
<a href="https://roundabout-host.com/roundabout/tty-wordle" class="repository-button">Go to repository</a>
34
</div>
35
<p class="tags">
36
37
<a href="/index/game.html" class="tag">game</a>
38
39
<a href="/index/python.html" class="tag">python</a>
40
41
<a href="/index/terminal.html" class="tag">terminal</a>
42
43
<a href="/index/apache.html" class="tag">apache</a>
44
45
<a href="/index/fun.html" class="tag">fun</a>
46
47
<a href="/index/teletype wordle.html" class="tag">teletype wordle</a>
48
49
</p>
50
<article class="content-area">
51
<p>Just like the original Wordle, you have to guess a 5-letter word in 6 tries and it tells you
52
how many letters are correct and in the right position, how many are correct but in the wrong
53
position, and how many are not in the word at all. The only difference is that this one is
54
played in the terminal. It's a great SSH toy for when you're bored.
55
</p><p>The game is written in Python and uses the <code>termcolor</code> library for coloured output. Since it
56
uses <code>colorama</code>, it works on Windows as well as Unix-like systems.
57
</p><p><img alt="A game of teletype Wordle" src="/static/photos/wordle.png"></img>
58
</p><p>You can also customise the game quite a bit. You can change the number of tries, the list of
59
words to guess from (and length will be inferred from that), and the list of words to randomly
60
choose an answer from. You can also enable the analyser, which shows all the letters that have
61
been found so far. Let's make someone play it with the full dictionary :)
62
</p><p>There is also a hard mode, where you must use all the letters that have been found in your
63
guesses.
64
</p><pre data-language="">usage: tty-wordle [-h] [-a] [-x] [--delay DELAY] [-l WORDS] [-n ANSWERS] [-t GUESSES]
65
66
A Wordle for your console.
67
68
options:
69
-h, --help show this help message and exit
70
-a, --analyser add the analyser, a row of all found letters
71
-x, --hard enable hard Wordle: you must use all found letters in your guesses
72
--delay DELAY time to show error messages for, in seconds
73
-l WORDS, --list WORDS
74
file to pull allowed guesses from
75
-n ANSWERS, --answers ANSWERS
76
file to pull a random answer from
77
-t GUESSES, --tries GUESSES
78
number of tries
79
</pre><p>Also, this is how the analyser looks like:
80
</p><p><img alt="The analyser in teletype Wordle" src="/static/photos/wordle-analyser.png"></img>
81
</p><p>If you press ^C it asks you whether you want to give up or not. If you do, it shows you the
82
answer. If you don't, it continues the game. You can press ^C again to close it and never see
83
the answer.
84
</p><h2>Licence</h2><p>Apache 2.0
85
</p>
86
</article>
87
88
</main>
89
<footer>
90
<p>Page generated on Sunday, 4 May 2025 at 15:06:42</p>
91
<p xmlns:cc="http://creativecommons.org/ns#" >This work is marked with <a href="https://creativecommons.org/publicdomain/zero/1.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC0 1.0 Universal</a> (🄍). No rights reserved.</p>
92
<p>Hosted at <a href="https://roundabout-host.com/roundabout">Roundabout-host</a> using the static site service, and generated with <a href="/projects/ampoule.html">Ampoule</a>.</p>
93
<a href="#">Back to top</a>
94
</footer>
95
</body>
96
</html>