Post by Ander GMPost by rootI 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.