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