Wordle Lovers - Play the NYT Daily Game

  • Thread starter fresh_42
  • Start date
  • Tags
    Game
In summary, the player played the New York Times daily word game and found that they had a higher fail rate in playing against Spanish-speaking humans. They also mentioned that the game is similar to a board game they remember from their childhood.
  • #5,181
Keeping the streak alive

Wordle 1 175 3/6

⬜🟨⬜⬜🟨
⬜⬜🟩⬜⬜
🟩🟩🟩🟩🟩

I have now solved Wordle 500 days in a row.

1725573987165.png


Played it even more days in a row but there was that fateful day 501 days ago when I managed to misspell the word I knew was the solution on guess 6 … unfortunately the misspelling was also a word … 😭
 
  • Wow
Likes dwarde
Physics news on Phys.org
  • #5,182
Wordle 1,175 4/6

β¬›πŸŸ¨β¬›β¬›πŸŸ¨
β¬›πŸŸ¨πŸŸ¨πŸŸ¨β¬›
β¬›πŸŸ©β¬›πŸŸ©πŸŸ¨
🟩🟩🟩🟩🟩
 
  • #5,183
Wordle 1,175 4/6

⬛⬛⬛⬛⬛
β¬›β¬›β¬›πŸŸ¨πŸŸ¨
β¬›πŸŸ¨πŸŸ©β¬›πŸŸ¨
🟩🟩🟩🟩🟩
 
  • #5,184
Wordle 1,175 4/6

⬜⬜⬜⬜🟨
⬜⬜🟩🟨⬜
🟨🟩🟩⬜⬜
🟩🟩🟩🟩🟩
 
  • #5,185
Wordle 1,175 6/6*

β¬›πŸŸ¨β¬›β¬›πŸŸ¨
β¬›β¬›πŸŸ©πŸŸ¨β¬›
β¬›πŸŸ©πŸŸ©β¬›β¬›
β¬›πŸŸ©πŸŸ©β¬›β¬›
β¬›πŸŸ©πŸŸ©β¬›β¬›
🟩🟩🟩🟩🟩

I have no idea why this was so hard for me. Once I found the solution it seemed so obvious!

EDIT: It might be relevant that I only found it after arriving home and gearing down.
 
Last edited:
  • Like
Likes dwarde
  • #5,186
Wordle 1,175 4/6

⬜🟨⬜⬜🟨
🟩🟩⬜🟩⬜
🟩🟩⬜🟩🟨
🟩🟩🟩🟩🟩
 
  • #5,187
Went into some kinda nerdy overdrive angry over the day’s abysmal result. I had an old IRC wordguess program lying around and cannabalized it to write this:

https://sourceforge.net/projects/wordlecheater/

I'm not really sure if it's publicly available as I cannot find the log out button on sourceforge. It was written as a challenge to myself and for the sheer fun of it. I'm not gonna use it to cheat. I mean, what would be the point?

The synopsis goes like:
Code:
./main [-l n] wordfile regex

as in (Example run for wordle (Sep. 6, 2024, "RERUN") "?er??":):

Code:
./main -l 5 '^([QWRUPFLZXVNM]{1})ER([QWRUPFLZXVNM]{2})$' csw.txt

Oh, forgot the output:

Screenshot from 2024-09-08 22-48-34.png

I know claimed I "geared down" but, yeah, I do stuff like this for fun. You don't get to judge me!

EDIT: Output got boring without all the garish color from the SPDLOG console color sink.



:biggrin:
 
Last edited:
  • #5,188
Wordle 1,176 5/6*

β¬›πŸŸ¨β¬›β¬›πŸŸ¨
β¬›πŸŸ¨β¬›πŸŸ¨β¬›
πŸŸ¨β¬›πŸŸ©πŸŸ©β¬›
β¬›πŸŸ¨πŸŸ©πŸŸ©πŸŸ©
🟩🟩🟩🟩🟩

Hah! Well, at least you probably wont suspect me of cheating. :smile:
 
  • #5,189
Wordle 1,176 3/6

πŸŸ¨β¬›πŸŸ¨β¬›πŸŸ¨
β¬›πŸŸ¨πŸŸ©πŸŸ¨πŸŸ©
🟩🟩🟩🟩🟩
 
  • #5,190
Wordle 1,176 6/6

⬜⬜⬜⬜🟨
⬜🟨⬜⬜🟩
🟨⬜⬜🟨🟩
⬜🟨⬜🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
 
  • Like
Likes dwarde and sbrothy
  • #5,191
gmax137 said:
Wordle 1,176 6/6

⬜⬜⬜⬜🟨
⬜🟨⬜⬜🟩
🟨⬜⬜🟨🟩
⬜🟨⬜🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩

Ah, so I wasn’t completely alone. This comforts me a little. :smile:
 
  • Like
Likes dwarde
  • #5,192
Wordle 1 176 4/6

⬜⬜⬜⬜🟨
🟨🟨⬜⬜⬜
⬜🟨⬜🟨🟩
🟩🟩🟩🟩🟩
 
  • #5,193
sbrothy said:
Ah, so I wasn’t completely alone. This comforts me a little. :smile:
I'm right there with ya, @sbrothy
 
  • Like
Likes dwarde
  • #5,194
Wordle 1,176 6/6

⬜🟨⬜⬜🟨
🟨⬜⬜🟩⬜
⬜⬜🟨🟩⬜
⬜⬜⬜🟩🟩
⬜🟨🟨🟩🟩
🟩🟩🟩🟩🟩
 
  • #5,195
dwarde said:
Wordle 1,176 6/6

⬜🟨⬜⬜🟨
🟨⬜⬜🟩⬜
⬜⬜🟨🟩⬜
⬜⬜⬜🟩🟩
⬜🟨🟨🟩🟩
🟩🟩🟩🟩🟩
Well, you've totally screwed up, our up until now, perfectly flat bell curve.

1725744611867.png


ps. Your pattern reminds me of pole dancing.
 
  • Haha
Likes dwarde
  • #5,196
Wordle 1,176 5/6

β¬›β¬›β¬›β¬›πŸŸ¨
β¬›πŸŸ¨πŸŸ¨β¬›β¬›
β¬›πŸŸ¨πŸŸ¨πŸŸ¨β¬›
β¬›πŸŸ¨πŸŸ¨πŸŸ©πŸŸ©
🟩🟩🟩🟩🟩

I forgot to use my "ignore previous answers" option with my program. If I did, my suggested second guess would have been different and I would have got it in 3. :mad::H
 
  • Like
Likes dwarde
  • #5,197
Wordle 1,177 4/6

β¬›πŸŸ¨πŸŸ¨β¬›πŸŸ¨
⬛⬛⬛⬛⬛
β¬›πŸŸ©πŸŸ©πŸŸ©πŸŸ©
🟩🟩🟩🟩🟩
 
  • #5,198
Wordle 1.177 4/6*

β¬›πŸŸ©πŸŸ©β¬›β¬›
β¬›πŸŸ©πŸŸ©β¬›β¬›
β¬›πŸŸ©πŸŸ©πŸŸ¨πŸŸ¨
🟩🟩🟩🟩🟩

7F830AF4-635A-4188-B95A-06269D97960A.png

There. Back to my usual performance.
 
  • #5,199
sbrothy said:
Wordle 1.177 4/6*

β¬›πŸŸ©πŸŸ©β¬›β¬›
β¬›πŸŸ©πŸŸ©β¬›β¬›
β¬›πŸŸ©πŸŸ©πŸŸ¨πŸŸ¨
🟩🟩🟩🟩🟩


There. Back to my usual performance.
Look at that, we have the same 3rd and 4th guesses …
 
  • Like
Likes sbrothy
  • #5,200
jack action said:
Wordle 1,176 5/6

β¬›β¬›β¬›β¬›πŸŸ¨
β¬›πŸŸ¨πŸŸ¨β¬›β¬›
β¬›πŸŸ¨πŸŸ¨πŸŸ¨β¬›
β¬›πŸŸ¨πŸŸ¨πŸŸ©πŸŸ©
🟩🟩🟩🟩🟩

I forgot to use my "ignore previous answers" option with my program. If I did, my suggested second guess would have been different and I would have got it in 3. :mad::H
Wait just a dang minute… So you do use a program of sorts? Or am I not to take that literally as in β€œcomputer program”?

:biggrin:
 
  • #5,201
Orodruin said:
Look at that, we have the same 3rd and 4th guesses …
Well I guess the 4th is hardly a big surprise if that’s where we both β€œguessed” it. :smile:

EDIT: Added quotation marks around β€œguessed”. :biggrin:
 
  • #5,202
OmCheeto said:
Well, you've totally screwed up, our up until now, perfectly flat bell curve.

View attachment 350927

ps. Your pattern reminds me of pole dancing.
Incidentally, isn’t IQ plotted on a bell curve? Just an observation. :smile:
 
  • #5,204
sbrothy said:
Wait just a dang minute… So you do use a program of sorts? Or am I not to take that literally as in β€œcomputer program”?

:biggrin:
Yes, I set myself a new challenge by building my own computer program to solve the puzzle. I mentioned my progress and referred to it since then a few times:

https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105113
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105129
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105393
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105519
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7106040
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7106419
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7107138
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7107860
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7108148
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7108161
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7108535
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7109958
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7109977
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7110482
 
  • #5,205
jack action said:
Yes, I set myself a new challenge by building my own computer program to solve the puzzle. I mentioned my progress and referred to it since then a few times:

https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105113
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105129
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105393
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7105519
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7106040
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7106419
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7107138
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7107860
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7108148
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7108161
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7108535
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7109958
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7109977
https://www.physicsforums.com/threads/wordle-lovers-play-the-nyt-daily-game.1016903/post-7110482
Hah! So I’m not the only one. Although my solution might be a little more brute forcy. :smile:

EDIT: And messy. Don’t forget messy. :biggrin:
 
  • #5,206
Man we are a sorry bunch of nerds, huh? o0)
 
  • Like
Likes jack action
  • #5,207
Wordle 1,177 4/6

⬜⬜🟩🟨⬜
⬜⬜⬜⬜⬜
⬜🟩🟩⬜🟩
🟩🟩🟩🟩🟩
 
  • #5,208
Wordle 1,177 4/6

🟨🟩⬜⬜⬜
⬜🟩🟩🟨🟨
🟩🟩🟩🟨⬜
🟩🟩🟩🟩🟩
 
  • #5,209
jack action said:
Yes, I set myself a new challenge by building my own computer program to solve the puzzle. I mentioned my progress and referred to it since then a few times: […]
Yeah and sorry. I just never took it literally as in β€œprogram” program. I was thinking more along some Excel-sheet with some minimalistic BASIC thrown in for good mesure but that is not what you meant is it?
 
  • #5,210
Wordle 1,178 3/6

β¬›πŸŸ©β¬›β¬›β¬›
πŸŸ©πŸŸ©πŸŸ¨πŸŸ¨β¬›
🟩🟩🟩🟩🟩
 
  • #5,211
Wordle 1.178 4/6*

πŸŸ¨β¬›β¬›πŸŸ¨πŸŸ¨
β¬›πŸŸ¨πŸŸ¨β¬›πŸŸ©
β¬›πŸŸ©β¬›πŸŸ©πŸŸ©
🟩🟩🟩🟩🟩

3AFE500A-13EE-40FE-8971-D4D290507674.png

Oops, made a typo. And then it really refused to cooperate. Sincerely hope I didn’t ef it up for anyone.
 
  • #5,212
Wordle 1,178 2/6

πŸŸ¨β¬›πŸŸ¨β¬›πŸŸ¨ [TREAD] 4 left - DEBIT DEITY DETOX ETUDE
🟩🟩🟩🟩🟩 [DEBIT]

sbrothy said:
Yeah and sorry. I just never took it literally as in β€œprogram” program. I was thinking more along some Excel-sheet with some minimalistic BASIC thrown in for good mesure but that is not what you meant is it?
A simple program I wrote in Bash (I replaced wget with _wget_ such that PF accepted it):
Bash:
#!/bin/bash
#
# arguments:
#
# none -> will get official Wordle past answers (once a day) AND give a seed word from the possible answers
#
# -o -> official Wordle: will consider past answers
#
# w-o+r*d-s- -> include hints from 'words':
#    '-': previous letter not included
#    '+': previous letter at the right place
#    '*': previous letter included but not at the right place
#
#    include as many words as necessary.
#
# Example:
#
# - wordle.sh
# - wordle.sh c-i-g-a*r*
# - wordle.sh -o c-i-g-a*r*
# - wordle.sh c-i-g-a*r* a*p-a*r+t-
# - wordle.sh -o c-i-g-a*r* a*p-a*r+t-
#


if [ $# = 0 ]
then
    fileDate=$(
        if [ -f past-answers.html ]
        then
            echo $(date -r past-answers.html | sed -E 's/^(([^ ]+ ){4}).+/\1/')
        else
            echo ''
            echo '' > past-answers.html
        fi
    )
    today=$(date | sed -E 's/^(([^ ]+ ){4}).+/\1/')
   
    if [ "$fileDate" != "$today" ]
    then
        _wget_ -q -O past-answers.html https://www.fiveforks.com/wordle/
    fi
   
    xmllint --html --xpath "//div[@id='vlist']" past-answers.html 2> /dev/null | sed -E 's/<[^>]+>//g' | sed -E 's/^(.{5}).+/\1/g' | sed -e '1,2d' | tr A-Z a-z > past-answers.txt
   
    comm -13 <(sort past-answers.txt) <(sort answerlist.txt) > futureanswerlist.txt
   
    shuf -n 1 futureanswerlist.txt
    exit
fi

FIRST=''
SECOND=''
THIRD=''
FOURTH=''
FIFTH=''

SOMEWHERE=''

NOT_FIRST=''
NOT_SECOND=''
NOT_THIRD=''
NOT_FOURTH=''
NOT_FIFTH=''

NOWHERE=''
future=''

for word in "$@"
do
    if [ $word = '-o' ]
    then
        future='future'
    else
        echo $word
        for ((i=0; i<${#word}; i+=2))
        do
            j=$((i+1))
       
            if [ "${word:j:1}" = '-' ]
            then
                NOWHERE="$NOWHERE${word:i:1}"
            elif [ "${word:j:1}" = '+' ]
            then
                case $i in
                    0)
                        FIRST="${word:i:1}"
                        ;;
                    2)
                        SECOND="${word:i:1}"
                        ;;
                    4)
                        THIRD="${word:i:1}"
                        ;;
                    6)
                        FOURTH="${word:i:1}"
                        ;;
                    8)
                        FIFTH="${word:i:1}"
                        ;;
                esac
            elif [ "${word:j:1}" = '*' ]
            then
                SOMEWHERE="$SOMEWHERE${word:i:1}"
                case $i in
                    0)
                        NOT_FIRST="$NOT_FIRST${word:i:1}"
                        ;;
                    2)
                        NOT_SECOND="$NOT_SECOND${word:i:1}"
                        ;;
                    4)
                        NOT_THIRD="$NOT_THIRD${word:i:1}"
                        ;;
                    6)
                        NOT_FOURTH="$NOT_FOURTH${word:i:1}"
                        ;;
                    8)
                        NOT_FIFTH="$NOT_FIFTH${word:i:1}"
                        ;;
                esac
            fi
        done
    fi
done

function set_unique {
    SET=$1
    TEMP=''

    for letters in "${SET[@]}"
   
    do
        declare -A char_count

        for ((i=0; i<${#letters}; i++))
        do
            char=${letters:i:1}
            char_count["$char"]=1
        done

        for char in "${!char_count[@]}"
        do
            TEMP=$TEMP$char
        done

        unset char_count
    done
    echo $TEMP
}

SOMEWHERE=$(set_unique "$SOMEWHERE")
NOWHERE=$(set_unique "$NOWHERE")
NOT_FIRST=$(set_unique "$NOT_FIRST")
NOT_SECOND=$(set_unique "$NOT_SECOND")
NOT_THIRD=$(set_unique "$NOT_THIRD")
NOT_FOURTH=$(set_unique "$NOT_FOURTH")
NOT_FIFTH=$(set_unique "$NOT_FIFTH")

echo $FIRST '-' $SECOND '-' $THIRD '-' $FOURTH '-' $FIFTH
echo $SOMEWHERE
echo $NOT_FIRST '-' $NOT_SECOND '-' $NOT_THIRD '-' $NOT_FOURTH '-' $NOT_FIFTH
echo $NOWHERE
echo '-----'


#---------------------#

somewhere=''
if [ $SOMEWHERE ]
then
    for ((i=0; i<${#SOMEWHERE}; i++))
    do
        somewhere="$somewhere(?=.*${SOMEWHERE:i:1}.*)"
    done
    for ((i=0; i<${#NOT_FIRST}; i++))
    do
        somewhere="$somewhere(?=[^${NOT_FIRST:i:1}].{4})"
    done
    for ((i=0; i<${#NOT_SECOND}; i++))
    do
        somewhere="$somewhere(?=.[^${NOT_SECOND:i:1}].{3})"
    done
    for ((i=0; i<${#NOT_THIRD}; i++))
    do
        somewhere="$somewhere(?=..[^${NOT_THIRD:i:1}]..)"
    done
    for ((i=0; i<${#NOT_FOURTH}; i++))
    do
        somewhere="$somewhere(?=.{3}[^${NOT_FOURTH:i:1}].)"
    done
    for ((i=0; i<${#NOT_FIFTH}; i++))
    do
        somewhere="$somewhere(?=.{4}[^${NOT_FIFTH:i:1}])"
    done
fi

if [ $FIRST ]
then
    first=$FIRST
elif [ $NOWHERE ]
then
    first="[^$NOWHERE]"
else
    first="."
fi

if [ $SECOND ]
then
    second=$SECOND
elif [ $NOWHERE ]
then
    second="[^$NOWHERE]"
else
    second="."
fi

if [ $THIRD ]
then
    third=$THIRD
elif [ $NOWHERE ]
then
    third="[^$NOWHERE]"
else
    third="."
fi

if [ $FOURTH ]
then
    fourth=$FOURTH
elif [ $NOWHERE ]
then
    fourth="[^$NOWHERE]"
else
    fourth="."
fi

if [ $FIFTH ]
then
    fifth=$FIFTH
elif [ $NOWHERE ]
then
    fifth="[^$NOWHERE]"
else
    fifth="."
fi

grep -P "$somewhere$first$second$third$fourth$fifth" ${future}answerlist.txt > possible-answers.txt

cat possible-answers.txt | wc -l
cat possible-answers.txt | head -n20
echo "-----"

DONE="$SOMEWHERE$NOWHERE$FIRST$SECOND$THIRD$FOURTH$FIFTH"

sed "s/[$DONE]//g" possible-answers.txt > possible-answers-letters.txt

ALPHABET="abcdefghijklmnopqrstuvwxyz"

echo $ALPHABET | sed "s/[$DONE]//g" | grep -o . > remaining-letters.txt

mapfile -t POSSIBLE < possible-answers-letters.txt
mapfile -t REMAINING < remaining-letters.txt

declare -A count

for ((i=0; i<${#REMAINING}; i++))
do
    char=${REMAINING:i:1}
    count["$char"]=0
done

for remaining in "${POSSIBLE[@]}"
do
    declare -A char_count

    for ((i=0; i<${#remaining}; i++))
    do
        char=${remaining:i:1}
        char_count["$char"]=1
    done

    for char in "${!char_count[@]}"
    do
        count["$char"]=$((count["$char"] + 1))
    done

    unset char_count
done

for char in "${!count[@]}"
do
    if [ ${count["$char"]} = 0 ]; then unset count["$char"]; fi
done

LENGTH=${#count[@]}
if [ $LENGTH -gt 5 ]; then LENGTH=5; fi


NEW_LETTERS=$(
for char in "${!count[@]}"
do
    echo $char '-' ${count["$char"]}
done |
sort -rn -k3 |
head -n$LENGTH |
sed -E "s/(.).+/\1/" |
tr -d "\n"
)

for ((i=0; i<${#NEW_LETTERS}; i++))
do
    new_letters="$new_letters(?=.*${NEW_LETTERS:i:1}.*)"
done

NEXT=$(grep -P "$new_letters....." possible-answers.txt | head -n10)
if [[ ! $NEXT ]]
then
    NEXT=$(grep -P "$new_letters....." ${future}answerlist.txt | head -n10)
fi
if [[ ! $NEXT ]]
then
    NEXT=$(grep -P "$new_letters....." wordlist.txt | head -n10)
fi

if [[ $NEXT ]]
then
    echo $NEXT
    exit
else
    LENGTH=$(( $LENGTH - 1 ))

    NEW_LETTERS=$(
    for char in "${!count[@]}"
    do
        echo $char '-' ${count["$char"]}
    done |
    sort -rn -k3 |
    head -n$LENGTH |
    sed -E "s/(.).+/\1/" |
    tr -d "\n"
    )

    new_letters=''

    for ((i=0; i<${#NEW_LETTERS}; i++))
    do
        new_letters="$new_letters(?=.*${NEW_LETTERS:i:1}.*)"
    done

    NEXT=$(grep -P "$new_letters....." possible-answers.txt | head -n10)
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." ${future}answerlist.txt | head -n10)
    fi
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." wordlist.txt | head -n10)
    fi
fi

if [[ $NEXT ]]
then
    echo $NEXT
    exit
else
    LENGTH=$(( $LENGTH - 1 ))

    NEW_LETTERS=$(
    for char in "${!count[@]}"
    do
        echo $char '-' ${count["$char"]}
    done |
    sort -rn -k3 |
    head -n$LENGTH |
    sed -E "s/(.).+/\1/" |
    tr -d "\n"
    )

    new_letters=''

    for ((i=0; i<${#NEW_LETTERS}; i++))
    do
        new_letters="$new_letters(?=.*${NEW_LETTERS:i:1}.*)"
    done

    NEXT=$(grep -P "$new_letters....." possible-answers.txt | head -n10)
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." ${future}answerlist.txt | head -n10)
    fi
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." wordlist.txt | head -n10)
    fi
fi

if [[ $NEXT ]]
then
    echo $NEXT
    exit
else
    LENGTH=$(( $LENGTH - 1 ))

    NEW_LETTERS=$(
    for char in "${!count[@]}"
    do
        echo $char '-' ${count["$char"]}
    done |
    sort -rn -k3 |
    head -n$LENGTH |
    sed -E "s/(.).+/\1/" |
    tr -d "\n"
    )

    new_letters=''

    for ((i=0; i<${#NEW_LETTERS}; i++))
    do
        new_letters="$new_letters(?=.*${NEW_LETTERS:i:1}.*)"
    done

    NEXT=$(grep -P "$new_letters....." possible-answers.txt | head -n10)
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." ${future}answerlist.txt | head -n10)
    fi
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." wordlist.txt | head -n10)
    fi
fi

if [[ $NEXT ]]
then
    echo $NEXT
    exit
else
    LENGTH=$(( $LENGTH - 1 ))

    NEW_LETTERS=$(
    for char in "${!count[@]}"
    do
        echo $char '-' ${count["$char"]}
    done |
    sort -rn -k3 |
    head -n$LENGTH |
    sed -E "s/(.).+/\1/" |
    tr -d "\n"
    )

    new_letters=''

    for ((i=0; i<${#NEW_LETTERS}; i++))
    do
        new_letters="$new_letters(?=.*${NEW_LETTERS:i:1}.*)"
    done

    NEXT=$(grep -P "$new_letters....." possible-answers.txt | head -n10)
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." ${future}answerlist.txt | head -n10)
    fi
    if [[ ! $NEXT ]]
    then
        NEXT=$(grep -P "$new_letters....." wordlist.txt | head -n10)
    fi

    echo $NEXT
    exit
fi
to be used together with the files "answerlist.txt" (all possible answers) and "wordlist.txt" (all possible words that can be used).
 
  • Like
Likes sbrothy
  • #5,213
Wordle 1,178 3/6

⬜⬜⬜⬜⬜
⬜⬜🟨⬜🟨
🟩🟩🟩🟩🟩

My program is to stare at the unused letters. It is a buggy program but sometimes it works!
 
  • Haha
Likes dwarde and OmCheeto
  • #5,214
Wordle 1,178 4/6

⬜⬜🟨⬜🟨
⬜🟨🟨⬜🟨
🟩⬜⬜🟩🟨
🟩🟩🟩🟩🟩
 
  • #5,215
Wordle 1,179 5/6*

β¬›πŸŸ¨β¬›β¬›πŸŸ¨
β¬›β¬›πŸŸ¨πŸŸ©πŸŸ¨
πŸŸ©πŸŸ©β¬›πŸŸ©πŸŸ©
πŸŸ©πŸŸ©β¬›πŸŸ©πŸŸ©
🟩🟩🟩🟩🟩

Ech.

1725921745077.png

Feh. Next time I'm using the program!
:biggrin:
 

Similar threads

Back
Top