Forget Luck: Optimized Wordle Strategy | Jay Frias

Solutions: [“cigar”,”rebut”,”sissy”, … ,”artsy”,”rural”,”shave”]Guesses: [“aahed”,”aalii”,”aargh”, … ,”zygon”,”zymes”,”zymic”]
Use Google Cloud Shell to extract words
First three solution words:
"cigar","solution"
"rebut","solution"
"sissy","solution"
Last three guess words:
"zygon","guess"
"zymes","guess"
"zymic","guess"
Number of words per type:
2315 "solution"
10657 "guess"
The Google BigQuery journey begins here
raw words – Everything adds up
normalization_words Ahed: shout with amazement, joy, or surprise 😱
Activate Google BigQuery Analytics Functions
letters – Powers of 2 FTW!
A = 0000000000000000000000000000001 =          1
B = 0000000000000000000000000000010 = 2
C = 0000000000000000000000000000100 = 4
D = 0000000000000000000000000001000 = 8
E = 0000000000000000000000000010000 = 16
F = 0000000000000000000000000100000 = 32
...
X = 0010000000000000000000000000000 = 8,388,608
Y = 0100000000000000000000000000000 = 16,777,216
Z = 1000000000000000000000000000000 = 33,554,432
BITMASK(ADDED) → {A,D,D,E,D} → {A,D,E} → {1,8,16} → 25
BITMASK(FADED) → {F,A,D,E,D} → {A,D,E,F} → {1,8,16,32} → 57
BITMASK(FACED) → {F,A,C,E,D} → {A,C,D,E,F} → {1,4,8,16,32} → 61
BITMASK(DECAF) → {D,E,C,A,F} → {A,C,D,E,F} → {1,4,8,16,32} → 61
THIS IS DEMONICAL: IF YOU READ FACED BACK YOU GET DECAF. I think I should have made a bitmask 666…
BIT_COUNT(BITMASK(ADDED) = BIT_COUNT(25) = BIT_COUNT(0b011001) = 3 
BIT_COUNT(BITMASK(FADED) = BIT_COUNT(57) = BIT_COUNT(0b111001) = 4
BIT_COUNT(BITMASK(FACED) = BIT_COUNT(61) = BIT_COUNT(0b111101) = 5
BIT_COUNT(BITMASK(DECAF) = BIT_COUNT(61) = BIT_COUNT(0b111101) = 5
If in doubt, prefer a word with 5 unique letters over one with 4 unique letter words

Leave a Comment