this post was submitted on 10 Sep 2023
111 points (93.0% liked)

Linux

48655 readers
1585 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 5 years ago
MODERATORS
111
submitted 1 year ago* (last edited 1 year ago) by christos to c/[email protected]
 

cross-posted from: https://lemmy.world/post/4793853

cross-posted from: https://lemmy.world/post/4793705

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.

There is another project that might interest you:

https://gitlab.com/christosangel/wordle-solver

UPDATES: Play menu became simpler, show LETTERS functionality was introduced, some improvements in show STATS and show WORD LIST. Also, word list file is now configurable.

top 8 comments
sorted by: hot top controversial new old
[–] Sh1nyM3t4l4ss 11 points 1 year ago (2 children)

Pretty cool in principle, although the default word list on my system is awful for wordle.

[–] christos 4 points 1 year ago
  • As mentioned above, this script is using the word list contained in /usr/share/dict/words.

    If your distro doesn't include this installed, you can install the respective package (wordlist, words) using the respective command (apt, pacman).

  • ADDITIONALLY, if someone wishes to play the game using a different word list, they can do so, editing LINE 17of the wordy.sh

WORD_LIST="/usr/share/dict/words"

change to

WORD_LIST="/path/to/prefered/wordlist"

[–] christos 1 points 1 year ago (1 children)

Oh the word list issue is a matter of great debate. I opted for using the default word list just to avoid this matter (thinking that this list is something fixed and undebatable). It might be a good idea to make the word list configurable, so that each user may use their prefered word list. Stay tuned, I might do it the very near future.

[–] njinx 1 points 1 year ago (2 children)

Have you thought of the Wordle wordlist by default and let the user override it via a config option? This would cut down on the per-distro variability. IIRC the wordlist itself it around 14KB so not terribly large. You could even pull it from the GH via curl during installation if you'd like. I don't think I'd mind implementing this if your interested.

[–] christos 1 points 1 year ago

Another alternative is to provide the user a few word lists (as you mentioned, they should be quite light), and from then on each one is free to choose their prefered one.

It could be done with curl as well, but then if we did that, we would have another dependency: curl.

I forgot to thank you for the feedback, and for your willlingness to help, it is appreciated.

[–] christos 1 points 1 year ago

If someone wishes to play the game using a different word list, they can do so, editing LINE 17of the wordy.sh

WORD_LIST="/usr/share/dict/words"

change to

WORD_LIST="/path/to/prefered/wordlist"

I have already considered this before. I know that what you propose is quite easy. However I do not want to impose any other word list (that might even be considered "proprietary") to anyone, when the majority of the users's systems already have the default word list. So, whoever user want any other list, they can easily edit that line and go on enjoy the game using the list they like.

Another solution is a config file instead of editing line 17. It is just as easy, but having a config file to configure just one parameter sounds not great.

[–] [email protected] 3 points 1 year ago (1 children)

Pretty cool dude, nice work :)

[–] christos 4 points 1 year ago