Wordle
Random 5 letter word
Guess the word in 6 tries or less
Example
Target word: staff
User Guess 1: world
Feedback 1: -----
User Guess 2: worms
Feedback 2: ----%
User Guess 3: fluff
Feedback 3: ---**
User Guess 4: staff
Feedback 4: *****
– : wrong letter
% : correct letter, wrong position
* : correct letter, correct position
This problem is a Wordle-style guessing game: the target is a 5-letter word, and the player has at most 6 attempts. After each guess, feedback uses three symbols: `-` for an absent letter, `%` for a correct letter in the wrong position, and `*` for a correct letter in the correct position. The key idea is to compare the guess against the target carefully, especially when repeated letters are involved. A frequency-count or two-pass matching approach is typically used to generate correct feedback.