A command-line implementation of a Wordle-like game in C. The game prompts the user to guess a secret 5-letter word, providing color-coded feedback on each guess.
- Guess the Word: The user has up to 6 attempts to guess the secret 5-letter word.
- Color-Coded Feedback:
- Green Background: Correct letter in the correct position.
- Yellow Background: Correct letter but in the wrong position.
- Grey Background: Incorrect letter.
- Uppercase Display: The secret word is displayed in uppercase if the user runs out of attempts.
- File-Based Word List: Reads a list of valid words from a file.
- A C compiler (e.g., GCC)
- ANSI escape codes compatible terminal for color output
-
Clone the Repository:
git clone https://github.com/steelcity/wordle-in-c.git cd wordle-in-c
-
Compile the Program:
gcc -o wordle wordle.c
-
Run the Program:
./wordle
-
Follow the Prompts:
- Enter your guesses when prompted.
- The program will provide color-coded feedback for each guess.

Feel free to open issues or submit pull requests to improve the game.
This project is licensed under the MIT License. See the LICENSE file for details.