Discussion:
Off Topic: Wordle
(too old to reply)
root
2022-01-14 16:16:50 UTC
Permalink
I don't play computer games, but I heard about Wordle which
has become the in-game now. The details sounded interesting
so I wrote my own version.

I get so much help from this group that I will post the source
of my code, and the data if anyone here is interested.

Thanks for all your help.
Ander GM
2022-01-21 22:12:00 UTC
Permalink
Post by root
I don't play computer games, but I heard about Wordle which
has become the in-game now. The details sounded interesting
so I wrote my own version.
I get so much help from this group that I will post the source
of my code, and the data if anyone here is interested.
Thanks for all your help.
Is it written for X or for the shell? I'd love a wordle clone for the tty.
Eli the Bearded
2022-01-22 00:31:25 UTC
Permalink
Post by Ander GM
Is it written for X or for the shell?
It's written in Javascript to play in a browser.
Post by Ander GM
I'd love a wordle clone for the tty.
You're in luck!

Python code:

https://github.com/hughpyle/ASR33/blob/master/bin/wordle

Video of game on tty:

https://twitter.com/33asr/status/1482787702605029389

But you can play on modern hardware, too, not just your hardcopy tty.

Elijah
------
real tty is louder than typical keyboards
root
2022-01-22 06:13:44 UTC
Permalink
Post by Ander GM
Post by root
I don't play computer games, but I heard about Wordle which
has become the in-game now. The details sounded interesting
so I wrote my own version.
I get so much help from this group that I will post the source
of my code, and the data if anyone here is interested.
Thanks for all your help.
Is it written for X or for the shell? I'd love a wordle clone for the tty.
It will run under X or as a console. Since you expressed interest
I will tell you about the program:

The full word library consists of over 12,000 words in the scrabble
five dictionary. However, I have arranged the words in word
frequency of a large English language corpus that I analyzed
some time ago. If the program is invoked as:

wordl without an argument you expose yourself to the full
word list.

If you invoke it as

wordl nnn

I will limit the selection to the nnn 5 letter words
with the highest frequency.

Any ? in the input word will reveal the underlying
letter.

Finally, I don't limit to 6 guesses. If you want
to fail after 6 guesses, just hit enter when prompted
for your guess and a new game will start.

As I understand the original game, letters that
are correct and in the correct position are printed
in green, and letters that are in the word but
not in the given position are printed in
orange (in console mode) or yellow in X.

When I read about wordl in the WSJ people were
choosing guess words whose letter frequency
corresponded roughly to the etaion-shrdlu
letter frequency. That frequency only applies
to the English language and *not* to the
scrabble 5 letter words, and decidedly
not to the most frequently used 5 letter words.

If you still want the program I will post it
in two parts: the c code, and the word list.
Poprocks
2022-01-25 03:04:15 UTC
Permalink
Post by root
I don't play computer games, but I heard about Wordle which
has become the in-game now. [...]
I have to admit -- I used /usr/share/dict/words and a bit of regexp to
help solve today's (official Wordle) puzzle.
root
2022-01-25 04:02:00 UTC
Permalink
Post by Poprocks
Post by root
I don't play computer games, but I heard about Wordle which
has become the in-game now. [...]
I have to admit -- I used /usr/share/dict/words and a bit of regexp to
help solve today's (official Wordle) puzzle.
Still a mental exercise. That's what its all about.
smw
2022-01-25 04:33:08 UTC
Permalink
Post by Poprocks
I have to admit -- I used /usr/share/dict/words and a bit of regexp to
help solve today's (official Wordle) puzzle.
...which inevitably calls to mind this .signature quote:

Ken Thompson claims that he started developing Unix so he could play
Space War, but the end product shows he was really much more interested
in cheating at Scrabble.
--Steve VanDevender

(as posted by Robert Uhl, probably about ten years ago)

Loading...