A text-based Python implementation of the popular Wordle puzzle game. Players attempt to guess a hidden five-letter word within six tries. After each guess, the game provides immediate visual feedback:
- Green: Correct letter in the correct position.
- Yellow: Correct letter in the wrong position.
- Default: Letter not in the word.
Follow these instructions to set up and play the game on your local machine.
- Python installed on your system (Download Python).
Note for macOS users: Python is no longer pre-installed on macOS Catalina and later versions. Please install Python manually.
- Clone this repository:
git clone https://github.com/IvanPedroza/Wordle.git
cd Wordle- Run the game:
python wordle.pyOptionally, specify your own target word (must be 5 letters):
python wordle.py MYWORDReplace MYWORD with your custom word.
- Start the game and enter your guesses when prompted.
- Receive color-coded feedback for each letter:
- Green: Letter is correctly placed.
- Yellow: Letter exists but is incorrectly placed.
- Default: Letter is not part of the word.
- You have 6 attempts to guess correctly.
- After your attempts:
- Success: A congratulatory message shows the number of attempts.
- Failure: The correct word is revealed.
The default word bank uses a local text file (Scrabble Words.txt). For expanded or dynamic word banks, consider integrating:
This can provide more variety and enhance gameplay.
This project is distributed under the MIT License.
Inspired by the original Wordle puzzle game by The New York Times.
Enjoy playing!