Word Guess Game
Description
Build a Wordle style word guessing game. The game has a fixed hidden five letter target word, a text input, a Submit button, and up to six attempts. Each submitted guess must render one row of letter tiles. A tile must communicate whether its letter is correct and in the correct position, present in another position, or absent from the target.
For deterministic evaluation, use REACT as the target word. The target should not be shown before the game is won or lost.
Show a win message when the player guesses the target. Show a lose message after six valid attempts without a correct guess. Include a Reset or New Game control that clears the attempts, current input, and game status.
Example 1
Enter HOUSE and submit. A row of five feedback tiles appears.
Example 2
Enter REACT and submit. The game displays a win message.
Constraints
- The target word is exactly five letters.
- The input accepts at most five letters and submission validates that the guess has five letters.
- The game accepts no more than six valid attempts.
- Each attempt renders five feedback tiles in the same order as the guess.
- Correct, present, and absent letters have distinguishable visual or semantic labels.
- Reset starts a fresh game with no attempts or status message.
- Attempts and tiles must be rendered from React state.
- The input, Submit button, game status, and Reset control must be accessible.
Word Guess Game
Build a Wordle style five letter guessing game with feedback tiles, attempt limits, win and lose states, and a reset action.