This is my attempt at recreating one of the features of the infamous Wordle game without looking at the original code or using any tutorials.
This is a solution for the following user story:
- Show letters typed in
- If the letter is in correct position ➡️ green background
- If the letter is in the word, but in incorrect position ➡️ yellow background
- If the letter is incorrect ➡️ grey background
- Limit guesses to six
- Style the UI
- Generate a random string from an array of strings
- Get inputs on click
- Iterate through inputs, compare with letters in string and give feedback
- Create grid row dinamically
- Set focus on next input field on key up
- Add new rows to grid
Next step -> Refactor the code
HTML, CSS, JS
- Popup messages for correct and incorrect solutions
- Create keyboard dynamically with JS
- Present rules of the game
- Add header section with buttons
- Countdown until next word
- Show statistics
- Options to share on social media
- Popup messages for correct and incorrect solutions
Deployed to GitHub Page