this post was submitted on 04 Dec 2026
255 points (99.2% liked)

Linux

69020 readers
862 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

https://gitlab.com/christosangel/wordy

Wordy is a word spelling puzzle.

You have 6 guesses to find out the secret 5-letter word.

https://gitlab.com/christosangel/wordy/-/raw/main/png/wordy.gif


  • 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:

  1. Letters proven green must remain in that exact position in the next guesses.

  2. 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:

https://gitlab.com/christosangel/wordy/-/raw/main/png/layouts.gif


No A.I. was used during the development of this project.


Feedback will be appreciated, enjoy!

top 24 comments
sorted by: hot top controversial new old
[–] SwooshBakery624@programming.dev 4 points 18 hours ago (1 children)

Thank you for not using AI. I'm going to install it today.

[–] christos@lemmy.world 2 points 14 hours ago

Thx, I hope that you like it.

[–] gerumpy@lemmy.ca 4 points 18 hours ago (1 children)

Impressive! Very cool that you did this in bash.

[–] christos@lemmy.world 2 points 14 hours ago

Thx, I hope you enjoy playing this game.

[–] prism@lemmy.dbzer0.com 49 points 2 days ago

Upvoted purely for not using AI. Congrats on using your brain! This might seem sarcastic but I really mean it.

[–] cypherpunks@lemmy.ml 16 points 2 days ago* (last edited 2 days ago) (3 children)

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

  1. if /usr/share/dict/words is 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.)
  2. if bc is not installed, the stats screen says ./wordy.sh: line 275: bc: command not found which could be handled more gracefully. (same for if column is not installed on the help screen.)
  3. typing "c" to edit the config fails silently if the preferred editor is not available. this also could print an error explaining what is missing instead.
  4. using my laptop's trackpad, every mouse click is registering twice. however, using its touchscreen it actually works. (i investigated this a little and it seems that my terminal emulator is sending the same mousedown and mouseup events for both the touchscreen and trackpad; i guess the difference is that there is a brief pause between them when I use the trackpad?)
  5. there are several typos in the comments in the config file

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:trixie container, an apt install line you can use to get /usr/share/dict/words, bc, and column is:

apt install --no-install-recommends wamerican bc bsdextrautils

(and to create the container, after cd'ing into the git checkout, i'm running podman run -v $(pwd):$(pwd) -w $(pwd) --rm -it debian:trixie bash)

[–] f314@lemmy.world 4 points 1 day ago

one more thought: "hard mode" doesn't really make sense to me; preventing accidental definitely-incorrect guesses ultimately makes it easier, doesn't it?

You can eliminate more letters by typing a completely different word with only unused letters. I’ve always preferred hard mode, though.

[–] psycotica0@lemmy.ca 7 points 2 days ago (1 children)

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.

[–] cypherpunks@lemmy.ml 3 points 2 days ago

thanks, that makes sense"you don't say" surprised realization reaction gif of Roland "Wee-Bey" Brice (Hassan "Iniko" Johnson) in The Wire S01E11, no text

[–] christos@lemmy.world 4 points 1 day ago

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 bc or column, or nano for 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 kitty or 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.

[–] communism@lemmy.ml 16 points 2 days ago (2 children)

Impressive to do it in Bash. How come you chose Bash instead of a programming language that would make this sort of thing easier? Learning exercise?

[–] christos@lemmy.world 19 points 2 days ago (1 children)

Well, what can I say, I like Bash. This project started as a one-liner, and improved from there. I guess it could be written in Python, or in C if you are adventurous enough, but it seemed way easier to not invent the wheel all over, and use the magic powers of grep.

[–] confusedpuppy@lemmy.dbzer0.com 10 points 2 days ago

I enjoy writing POSIX scripts and it gets a lot of reactions. Sure I could use a higher level language but I love the oddities and strangeness of POSIX shell.

I definitely have more fun working with a limited canvas so I get why people would use bash.

Plus all anyone needs to get started is a text editor. No list of dependencies or compilers, just get in and go :)

[–] eldavi@lemmy.ml 5 points 2 days ago

funny you say this since i went into java, ruby and python because bash made it difficult.

fast forward 20 years and i'm working as a devops engineer and absolutely 👏 every 👏 single 👏 shop is absolutely DOMINATED by bash -- yes there's plenty of python et. al; but bash is clearly doing the heavy lifting. :p

[–] tomenzgg@midwest.social 9 points 2 days ago* (last edited 2 days ago) (1 children)

I was going to make a joke of "I only play Wordle in Emacs, as God intended" but, as others have noted, it really is super impressive as to be a waste not to acknowledge that, on its own.

As a fellow Bash lover, very cool!

[–] christos@lemmy.world 1 points 1 day ago

Thanks so much, I hope you enjoy the game. I appreciate it, these are heavy words coming from an Emacs afficionado (sorry but I could not help recalling this video)

[–] eldyaitch@lemmy.zip 10 points 2 days ago (3 children)

I don’t know BASH beyond some simple scripting, but I didn’t know a TUI could be written in BASH! Am I understanding that correctly?

[–] myrmidex@belgae.social 26 points 2 days ago* (last edited 2 days ago) (1 children)

The "TUI" is all custom output prints. main file at just 740 lines. Impressive. OP bashes hard :D

PRT_SQR[48]="╭───────────────────────╮"
PRT_SQR[49]="│ ${M}space     ${B}${ENTH}Submit Word${n}${B} │"
[–] eldyaitch@lemmy.zip 5 points 2 days ago

I wondered if that were the case but I thought that’d be insanely tedious 🤯

[–] christos@lemmy.world 8 points 2 days ago

Yes, I think you do.

[–] naught@sh.itjust.works 4 points 2 days ago (1 children)

What you've never seen 7,000 beautiful lines of bash!?

https://github.com/KittyKatt/screenFetch/blob/master/screenfetch-dev

happens more often than you think 😔

[–] eldavi@lemmy.ml 4 points 2 days ago

welcome to devops! lol

[–] Rynux@lemmy.ml 4 points 2 days ago

That looks cool. I like it. I always wanted some terminal foss wordle clone.

[–] sfxrlz@lemmy.world 4 points 2 days ago

Looks very nice. I’ll check it out later