This project is a clone of the popular word-guessing game Wordle. It is a console-based application where players have six attempts to guess a randomly selected word. Each guess provides feedback in the form of colored tiles, indicating when letters match or occupy the correct position.
- Run the application.
- Enter your guess (a valid 5-letter word).
- Review the color-coded feedback:
- Green: Letter is in the word and in the correct position.
- Yellow: Letter is in the word but in the wrong position.
- Black: Letter is not in the word in any spot.
- Use the feedback to make your next guess.
- Try to guess the word in six attempts or fewer.
- Console-Based Interface: Easy to use and navigate.
- Historical Tracking: Maintain a detailed record of previous games, including statistics on performance over time.
- Color Feedback: Receive immediate, color-based hints after each guess to help refine subsequent attempts.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- C++ Compiler (GCC recommended)
- Make (optional for building)
- Git
Follow these steps to set up and run the Wordle game in your development environment.
-
Clone the repository: Clone the Wordle repository from GitHub to your local machine.
git clone https://github.com/napronald/Wordle.git
-
Navigate to the directory: Change into the directory where the Wordle game code is located.
cd Wordle
-
Compile the project: Compile the
main.cpp
file into an executable named Wordle. Make sure you have a C++ compiler like g++ installed.g++ -o Wordle main.cpp
-
Run the game with command-line arguments: Run the compiled Wordle game. The game expects a command-line argument representing the desired word length (4, 5, 6, or 7). For example, to play with 5-letter words:
./Wordle 5 5-letter-words.txt 5-allowed-guesses.txt
Replace
5
,5-letter-words.txt
, and5-allowed-guesses.txt
with the desired word length (4, 5, 6, or 7). -
Running Keyboard Interface Concurrently: If you wish to have a keyboard interface running concurrently with the main game, navigate to the
MyWordle
directory in a new terminal window and compile the keyboard interface:cd path/to/MyWordle g++ -o KeyboardInterface keyboard.cpp
Then, run the
KeyboardInterface
program:./KeyboardInterface
This will allow you to interact with the Wordle game using a keyboard interface in real time.