Wordle
powerlanguage.co.uk
powerlanguage.co.uk
There are two players, Guesser and Responder, who share a dictionary of words. Responder starts the game by stating a positive integer N, where there is at least one word of length N in the dictionary. The turns then alternate between Guesser and Responder. Guesser proposes any dictionary word of length N, and Responder then provides feedback on each letter in the word (i.e., right letter in wrong place, right letter in right place, wrong letter) such that at least one N-letter word in the dictionary is consistent with all the feedback given so far.
The game ends when Responder indicates that Guesser's word is correct in all places, or after responder has provided feedback 6 times, whichever comes first. If Guesser never guessed the word, Responder gains 7 points. Otherwise, responder gains a number of points equal to the number of turns taken by Guesser.
Alternatively, the bot could minimize the expected number of turns using an expectimax (https://en.wikipedia.org/wiki/Expectiminimax) search, under the assumption that the hidden word was chosen uniformly at random from the set of all dictionary words of the same length.
https://www.reddit.com/r/WebGames/comments/qwmnmt/wordle_a_d...
Ps, got it in 5
Note to others: the letters in the directions are not specific to today's puzzle! :-)
(Discussed on HN at the time: https://news.ycombinator.com/item?id=21796347)
I'd love to see a head-to-head version of this, where I could wager against my opponent each turn. I know some very "wordy" friends that would really enjoy trying to outguess and outbet one another.
Suppose we could just use two ipads and accomplish the same thing.
Anyhow. lovely game, thanks for posting!
[0] https://en.wikipedia.org/wiki/Lingo_(American_game_show)
I got it on the fourth try but it felt like dumb luck. I'll have to try again tomorrow to see if it was.
The fact that each try needs to be a real world is not stated in the instructions, which confused me too.