I heartily endorse Wordle as a word game.
I didn’t do great on Sunday, August 28 2022 Wordle:
After the fifth guess, I decided to use regular expressions to help me out. I try to do Wordles entirely without assistance.
#!/bin/bash set -eou pipefail grep '^.....$' /usr/share/dict/words | tr '[A-Z]' '[a-z]' | grep '[^crnmoldyshpfblv]a[^crnmoldyshpfblvga][^crnmoldyshpfblvu]e' | grep g | grep u
I got “gauge” and “gauze” out of that little program. I guessed “gauge” because ‘g’ has a higher probability of appearing in a word than ‘z’. I was wrong.
I’m not too happy with grepping for words with a ‘u’ and a ‘g’ separately, but I can’t make a regular expression that does not have the letters that don’t work from the first 5 wrong guesses but does have a ‘g’ and a ‘u’