Winning
Workflow
The original purpose for qordle
was to solve the daily
wordle puzzle faster than my
family. The qordle
suggest command will quickly perform
a ranking of the best next guesses. I wrote a simple shell script to facilitate
using two different strategy combinations and jq
to show only
the top ten words.
#!/usr/bin/env zsh
set -eo pipefail
strategies=(
# '-s freq'
# '-s pos'
# '-s bigram'
'-s freq -s pos'
# '-s freq -s bigram'
'-s freq -s pos -s bigram'
)
for strategy in ${strategies}
do
eval "qordle suggest $strategy -S "$@"" |
jq --arg strategy $strategy '{strategy:$strategy, words:.[:10]}'
done
An example session of a few guesses might follow the below pattern.
$ qordle-suggest t.a.res g.r.ain m.o.l.a.r
{
"strategy": "-s freq -s pos",
"words": [
"flora"
]
}
{
"strategy": "-s freq -s pos -s bigram",
"words": [
"flora"
]
}
To see how qordle
might have played a word using different strategies, use the
play command. The following is a short script I use to
abbreviate the results.
#!/usr/bin/env zsh
set -eo pipefail
qordle play -s frequency -s position -S "$@" |
jq -s 'map({secret:.secret, words:(.rounds|last|.words)})'
If no starting word is provided, qordle
will automatically find the optimal
starting word for the specified strategies. In this case it ranked tares
best.
$ qordle-play under
[
{
"secret": "under",
"words": [
"tares",
"cider",
"older",
"under"
]
}
]
Chaining the bigram strategy would have resulted in a faster path to the solution.