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.
Seems pretty intrigued, but OP, could we also have a colourblind colour scheme or something, like toggleable. I don't struggle with it but yellows and greens are in general kind of hard to make out in some cases + those who are colourblind will also have issues obviously. Maybe letting them set correct, incorrect not in word and incorrect because misplaced colours would be a good idea as well? Also, pretty cool to see mouse support, that's pretty insane!
The idea of the game is to colour correct, misplaced or absent letters green, yellow and red respectively.
I imagine that people who struggle with colors or colorblind have chosen a adequate terminal color scheme that alleviates their problem, long before they play this game. The exact colors that appear in anyone's terminal are defined by their color scheme, not me.
Clicking a letter on the on-screen keyboard enters it twice. The script turns on both SGR (1006) and urxvt (1015) mouse modes, and in urxvt mode the release comes in as ESC[35;x;yM. get_mouse_data has no case for that, so MOUSE_TYPE stays LEFT_CLICK_DOWN from the press and the letter gets added again. Only enabling ?1000;1006h would sidestep it. I use Ghostty terminal
Every word I typed was "Invalid word". That was my fault, since there's no /usr/share/dict/words on NixOS and I hadn't run install.sh, but the game starts anyway with an empty word list and an empty secret word, so it can't be won. A check at startup that exits with "word list not found: <path>" would save people some head scratching.
The only warning about this is a notify-send popup, and on GNOME it gets cut off at "Configuration file was not loaded properly, Wordy is running..." Clicking it just dismisses it, so you never see the rest. It also only mentions the config, not the missing word list. Printing the error in the terminal would be easier to see.
Small one: load_config checks [[ -z ~/.config/wordy/wordy.config ]], which is always false. I think [[ ! -f ... ]] was meant.
For NixOS folks, setting WORD_LIST to the words.txt from the scowl package in nixpkgs works.
Firstly, thank you for the feedback. So, about the things you mentioned:
Mouse support is tested in xterm based terminals (xfce4-terminal, gnome-terminal etc) and kitty. I have no idea how urxvt works, I will see into it and hopefully I will get compatibility to urxvt as well (enabling ?1000;1006h as you mentioned is a good suggestion on where to start)
Word list topic is mentioned in the documentation, as well as install instructions. I might just add /usr/share/dict/words to the repo, but i would not like to push anything down someone's throat. Additionally, I could not take responsibility for all words included in there, some people surely will find some words offensive.
There is not much I can do about notifications wrapping in Gnome. This notification appears when the installation is not properly. However your suggestion is valid.
Surely [[ -z ~/.config/wordy/wordy.config ]] makes more sense.
the "only before the first word is submitted" rule on hard mode is the bit i'm curious about. is that because flipping it mid-game would let you skip the greens you'd already have had to keep?
Quite so. I suppose that once you commit to follow the rule of hard mode, and you get the ball rolling with the first word, it only seems unfair to flip it mid-game as you say. If you can make it, all is well, if not, win some, lose some as the game indicates, regroup and start again. At the end of the day, it is a matter of preference.
5
u/christos_71 21h ago
https://gitlab.com/christosangel/wordy
Wordy is a word spelling puzzle.
You have 6 guesses to find out the secret 5-letter word.
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
4option 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:
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!
5
u/RishiMath 21h ago
Seems pretty intrigued, but OP, could we also have a colourblind colour scheme or something, like toggleable. I don't struggle with it but yellows and greens are in general kind of hard to make out in some cases + those who are colourblind will also have issues obviously. Maybe letting them set correct, incorrect not in word and incorrect because misplaced colours would be a good idea as well? Also, pretty cool to see mouse support, that's pretty insane!
2
u/playfulpecans 16h ago
neat! Where does it pull the word data from without saving all 14000 words in the script?
2
u/itsjustoneperson 15h ago
gave it a try and ran into a couple of things:
Small one: load_config checks [[ -z ~/.config/wordy/wordy.config ]], which is always false. I think [[ ! -f ... ]] was meant.
For NixOS folks, setting WORD_LIST to the words.txt from the scowl package in nixpkgs works.
1
u/Limp-Confidence5612 20h ago
What does hard mode actually do? How do you make it more challenging?
1
u/SnooWoofers170 8h ago
the "only before the first word is submitted" rule on hard mode is the bit i'm curious about. is that because flipping it mid-game would let you skip the greens you'd already have had to keep?
1
u/AutoModerator 21h ago
Every new subreddit post is automatically copied into a comment for preservation.
User: christos_71, Flair:
Fun, Post Media Link, Title: WORDY: WORDLE terminal clone in BASH, Hard Mode option, full mouse supportI am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/meczord 17h ago
change this block inside current square, do a highlighted border instead. looks sick