A simple Python recreation of the popular word game Wordle, where players guess a 5-letter word in six attempts or fewer. This project is a beginner-friendly exercise in Python programming, focusing on logic, string manipulation, and user interaction.
- The game selects a random 5-letter word as the secret word.
- The player has six attempts to guess the word.
- After each guess:
- Letters that are correct and in the right position will be highlighted as green.
- Letters that are correct but in the wrong position will be highlighted as yellow.
- Incorrect letters will remain unhighlighted.
- The game ends when the player correctly guesses the word or runs out of attempts.
- Random selection of a 5-letter word from a word list.
- Feedback on each guess with color-coded output for correct and misplaced letters.
- Validation to ensure guesses are valid 5-letter words.
- A clean and simple command-line interface.
- Python 3.x installed on your system.
git clone https://github.com/yourusername/python-wordle.git
cd python-wordle
py wordle.py