Wordle is a captivating word-guessing game designed to challenge your vocabulary and wordplay skills. This Python terminal-based game allows players to guess a five-letter word within six attempts. With a blend of strategy, deduction, and a touch of luck, Wordle offers an exciting and interactive gaming experience.
- Run the Python script in your terminal.
- A menu will be displayed, prompting you to enter a five-letter word.
- Input your guess and press enter.
- For each letter in your guess, the game will provide feedback:
- Correct letter in the correct position: Displayed in green.
- Correct letter in the wrong position: Displayed in yellow.
- Incorrect letter: Displayed as is.
- Keep guessing and receiving feedback until you guess the word correctly or exhaust all six attempts.
- If you guess the word within the given attempts, a congratulatory message will be shown.
- If you are unable to guess the word, the correct word will be revealed.
- You can choose to play again by typing 'q' to exit.
- Python 3.x
- termcolor library (
pip install termcolor
) - nltk library (
pip install nltk
)
- Clone the repository:
git clone https://github.com/hassansim/wordle-terminal-game
- Navigate to the project directory:
cd wordle-terminal-game
- Run the Python script:
python main.py
- Enjoy playing Wordle in your terminal!
You can find the complete code for the Wordle game in the main.py file.
This project is licensed under the MIT License. See the LICENSE file for more information.
Wordle is an engaging word-guessing game that offers entertainment and a chance to sharpen your language skills. Challenge yourself, have fun, and improve your vocabulary with this delightful Python terminal game. Enjoy playing Wordle and may the words be in your favor!