Skip to content

oburn/wordle

Repository files navigation

Wordle Helper

Description

Just a tool to assist in solving a Wordle puzzle. The real purpose is to learn the Go language.

Usage

Run with:

go run .

Enter the word you guess, and then the outcome of the guess, using the following options:

  • c - letter is correct
  • e - letter is used elsewhere
  • x - letter is incorrect

You are then presented with the list of candidate words, sorted by words with the most number of unique letters first.

Then the cycle continues with another prompt.

Use Control-C to bail out.

Here is a sample session solving the word ennui:

prompt% go run .
  Enter guess: fried
Enter outcome: xxeex
---------------------------------------------------------------------------
mesia  pokie  zowie  aisle  aizle  alkie  aspie  bagie  begin  zinke  belit
yowie  bemix  benis  benji  yince  besit  besti  bewig  bezil  yetis  bigae
xenic  bilge  binge  biome  biose  xenia  boeti  bogie  bonie  bosie  bowie
cavie  withe  cesti  ciels  winze  cleik  cogie  cosie  cozie  cutie  eatin
winge  eight  wince  eikon  elain  elchi  wiels  eloin  elsin  email  emoji
enlit  walie  enoki  entia  envoi  eosin  vygie  equip  ethic  vogie  etuis
genic  vleis  vitae  visne  genio  genip  viewy  views  vieux  vexil  gleis
gynie  helio  helix  hemic  hemin  hiems  hinge  venti  homie  ickle  ileac
uptie  ileum  ileus  image  imbue  untie  inbye  incle  inept  ingle  inkle
umpie  isnae  ulzie  istle  items  ixtle  jakie  jaxie  ulyie  tozie  jolie
---------------------------------------------------------------------------
  Enter guess: begin
Enter outcome: xexee
---------------------------------------------------------------------------
minae  visne  envoi  zinke  incle  inept  inkle  isnae  yince  liane  pince
enoki  minke  mince  sient  minse  moeni  naevi  niche  winze  wince  miens
since  liens  jinne  siens  nisse  nieve  niess  niece  ennui  inane
---------------------------------------------------------------------------
  Enter guess: mince
Enter outcome: xecxe
---------------------------------------------------------------------------
ennui
---------------------------------------------------------------------------
  Enter guess: ^Csignal: interrupt

Scratch

go run . <<DOG
plant
xxxxx
DOG

License

See LICENSE.

The valid-words.txt file was sourced from this gist.

Dev Notes

Obviously you need go installed. Exercise left to reader. I used VS Code to develop.

Run tests with:

go test -v

Ideas

Use https://towardsdatascience.com/a-frequency-analysis-on-wordle-9c5778283363 and rank words that contain letter that are the most average frequency of letters in 5-letter words. I.e. favour using e over z as it’s more frequent. Still prefer words with the most number of unique letters.

Past Solutions

LetterRating
a52
e48
s41
o32
r31
i30
l26
t25
n25
u21
d17
c16
y15
m15
p14
h14
b13
g12
k11
f8
w7
v6
z3
j2
x2
q1

Emacs Configuration

About

Helper for solving wordle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages