i'd like to share my version of wordle written in snap:
i use a csv of 366 target words - one is selected at random in every game. it uses an online dictionary via api but this option is selectable at the start of the game. (if you don't use dictionary, the validity of the guess words relies on the honor system! if you use the dictionary, sometimes it's slow). for feedback on letter usage, i simply show list of remaining letters to use after every guess.
please feel free to remix it!
(for debugging purposes, you can edit the code and set debug-word to a 5-letter word and it becomes the target word instead of a random choice from the word list. set the value back to empty to return to normal run)..
where have you guys been! Wordle has taken the world by storm since it appeared a few months ago - 10 million people now play it worldwide! you should try it] https://www.powerlanguage.co.uk/wordle/
note - you only have one chance to play per day. after you solve it, click on share and you can post your "score" in social media - like this (today's game):
thanks for the feedback!
like i said, every time - i mean every time - i use that dictionary api (sample call https://api.dictionaryapi.dev/api/v2/entries/en/sugar) on the browser, the result is instantaneous, that's why i included it in this version. i didn't realize the response time would be erratic. for me, most of the time, the response time has been acceptable though.
i've recenty discovered that there's a quick search block in snap
i don't know how fast it can search 12000 words (the search word list in wordle) . if the search time is imperceptible, i can replace the api. my other concern then would be the size - maybe it doesn't matter.
are you still planning to write your own version of wordle? maybe you might want to make a version of this: https://nerdlegame.com/
the challenge would be in the validation of arithmetic expressions!