https://gitlab.com/christosangel/wordy
Wordy is a word spelling puzzle.
You have 6 guesses to find out the secret 5-letter word.

-
If a letter appears green, that means that this letter exists in the secret word, and is in the right position.
-
If a letter appears yellow, that means that this letter exists in the secret word, but is in NOT the right position.
-
If a letter appears red, that means that this letter does NOT appear in the secret word AT ALL.
The user can select to play with HARD MODE enabled, just to make things more challenging.
This is done be selecting to Configure (c) in the main menu.
Alternatively, it can be toggled by the 4 option with the keyboard or mouse, but only before the first word is submitted.
Playing with Hard Mode enabled means the following for the next guesses:
-
Letters proven green must remain in that exact position in the next guesses.
-
Accordingly, yellow letters must be included in the next guesses,until placed correctly.
Full mouse support has been introduced in the updated version of the game. That means that the player can select menu options and enter words during the game using the mouse as well as the keyboard.
Depending whether the player toggles the Legend, Info or Mouse Support, the game layout changes accordingly:

No A.I. was used during the development of this project.
Feedback will be appreciated, enjoy!


wow, very nice work!
I have a few minor bugs to report. (despite the code being (impressively) concise enough that after briefly skimming it i was pretty confident that it wasn’t malicious, i ran it in a fresh minimal container anyway… which explains how i encountered the first three of these.)
/usr/share/dict/wordsis not present, it does not report any problem and simply says “invalid word” for every guess entered. (it should give an error and refuse to start in this case.)bcis not installed, the stats screen says./wordy.sh: line 275: bc: command not foundwhich could be handled more gracefully. (same for ifcolumnis not installed on the help screen.)one more thought: “hard mode” doesn’t really make sense to me; preventing accidental definitely-incorrect guesses ultimately makes it easier, doesn’t it?
thanks again for sharing this!
edit: in case anyone else wants to run this in a
debian:trixiecontainer, an apt install line you can use to get/usr/share/dict/words,bc, andcolumnis:apt install --no-install-recommends wamerican bc bsdextrautils(and to create the container, after
cd’ing into the git checkout, i’m runningpodman run -v $(pwd):$(pwd) -w $(pwd) --rm -it debian:trixie bash)You can eliminate more letters by typing a completely different word with only unused letters. I’ve always preferred hard mode, though.
First of all, your feedback is really appreciated.
As far as the word list is concerned, it is mentioned as the sole dependency in the documentation.
I assumed that since I have never needed to install commands like
bcorcolumn, ornanofor that matter, all other systems have these already installed, evidently that is not the case, thx for bringing this up.Mouse compatibility issues mostly had to do with
kittyor mac systems, where mouse printed output differed from xterm terminals, and that I took care of. I don’t know the details of your system and why trackpad fails to work in yours. Perhaps give it a go with another terminal, see what happens.Hard mode is really a matter of preference, some people prefer it, some people don’t, it is better to have the toggle option that not.
Again, I appreciate the input and the nice words, I hope you enjoy this game.
As an upstream hard-moder myself, the challenge isn’t that it disallows incorrect guesses.
The challenge is that it doesn’t allow one to find extra information without a plausible guess.
So if I already knew there was an “S” and not an “A”, I couldn’t guess “BREAK” to smoke out whether or not there are any Rs, Es, or Bs, for example.
Yes, true, you know that “break” could never be the word, but you could potentially converge faster if you could eliminate some common letters.
In hard mode you have to come up with something that fits the information you have in order to gain more information. This is especially painful bordering on “unfun” when you have something like “⬛IGHT”. There are a bunch of options for what you might guess, but you have no choice but to just go through them. Someone not playing hard mode could instead be more strategic in picking a word that doesn’t end “ight” but contains several of the potential first letters and narrow it down in one guess.
thanks, that makes sense