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 • 3.73 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
<nav>
14
<ul>
15
<li><a href="/">Home</a></li>
16
<li><a href="/projects">Projects</a></li>
17
<li><a href="/index">Index</a></li>
18
<li><a href="/about">About</a></li>
19
<li><a href="https://roundabout-host.com/roundabout">Roundabout-host</a></li>
20
</ul>
21
<ul>
22
<li><a href="mailto:root@roundabout-host.com" id="mail-link">root@roundabout-host.com</a></li>
23
</ul>
24
</nav>
25
</header>
26
<main>
27
28
<h1 class="project-title">
29
<span>Teletype Wordle</span>
30
<a href="https://roundabout-host.com/roundabout/tty-wordle">Repository</a>
31
</h1>
32
<article class="content-area">
33
<p>Just like the original Wordle, you have to guess a 5-letter word in 6 tries and it tells you
34
how many letters are correct and in the right position, how many are correct but in the wrong
35
position, and how many are not in the word at all. The only difference is that this one is
36
played in the terminal. It's a great SSH toy for when you're bored.
37
</p><p>The game is written in Python and uses the <code>termcolor</code> library for coloured output. Since it
38
uses <code>colorama</code>, it works on Windows as well as Unix-like systems.
39
</p><p><img alt="A game of teletype Wordle" src="/static/photos/wordle.png"></img>
40
</p><p>You can also customise the game quite a bit. You can change the number of tries, the list of
41
words to guess from (and length will be inferred from that), and the list of words to randomly
42
choose an answer from. You can also enable the analyser, which shows all the letters that have
43
been found so far. Let's make someone play it with the full dictionary :)
44
</p><p>There is also a hard mode, where you must use all the letters that have been found in your
45
guesses.
46
</p><pre data-language="">usage: tty-wordle [-h] [-a] [-x] [--delay DELAY] [-l WORDS] [-n ANSWERS] [-t GUESSES]
47
48
A Wordle for your console.
49
50
options:
51
-h, --help show this help message and exit
52
-a, --analyser add the analyser, a row of all found letters
53
-x, --hard enable hard Wordle: you must use all found letters in your guesses
54
--delay DELAY time to show error messages for, in seconds
55
-l WORDS, --list WORDS
56
file to pull allowed guesses from
57
-n ANSWERS, --answers ANSWERS
58
file to pull a random answer from
59
-t GUESSES, --tries GUESSES
60
number of tries
61
</pre><p>Also, this is how the analyser looks like:
62
</p><p><img alt="The analyser in teletype Wordle" src="/static/photos/wordle-analyser.png"></img>
63
</p><p>If you press ^C it asks you whether you want to give up or not. If you do, it shows you the
64
answer. If you don't, it continues the game. You can press ^C again to close it and never see
65
the answer.
66
</p><h2>Licence</h2><p>Apache 2.0
67
</p>
68
</article>
69
70
</main>
71
<footer>
72
<p>Page generated on Saturday, 4 January 2025 at 11:16:28</p>
73
<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>
74
<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>
75
<a href="#">Back to top</a>
76
</footer>
77
</body>
78
</html>