A Wordle-inspired word-guessing game where players try to guess a secret five-letter word in six attempts. Built using HTML, CSS, and JavaScript.
Click here to try the game: Word Masters Game
- A secret five-letter word is chosen.
- Players have six guesses to figure out the secret word. After six guesses, they lose.
- Feedback for each guess is provided:
- Green: The letter is in the correct position.
- Yellow: The letter is in the word but in the wrong position.
- Gray: The letter is not in the word.
- The game accounts for the exact number of letters in the word. For example:
- If the player guesses "SPOOL" and the word is "OVERT," one "O" is marked yellow, and the second "O" is not.
- If the player guesses the correct word, they win, and the game ends with a celebratory animation.
- Interactive Gameplay: Real-time feedback on guesses.
- Dynamic Styling: Correct, close, and incorrect guesses are visually distinguished.
- Responsive Design: Works on various screen sizes (keyboard is necessary).
- Loading Animation: Spinner appears while fetching the word of the day.
- Add keyboard input visualization.
- Track player statistics (e.g., win/loss record).
- Allow custom word input for multiplayer mode.
- Add error handling for the API if the fetch call fails
- Mobile friendly
- HTML5
- CSS3
- JavaScript (ES6+)
- External API for word validation and daily word.
- The secret word is fetched from an external API (
https://words.dev-apis.com/word-of-the-day
). - Validation checks ensure only five letter real words are accepted.