Wordle Game Description This is a simple implementation of the Wordle game in Java with a graphical user interface (GUI). In Wordle, players try to guess a hidden five-letter word within a limited number of attempts.
Features Graphical user interface using Swing for a pleasant user experience. Randomly selects a word from a predefined list for the player to guess. Provides feedback on the correctness of the guesses through color-coded indicators. Keeps track of game statistics such as total plays, win percentage, current streak, and max streak. Installation Clone or download the repository to your local machine. Ensure you have Java Development Kit (JDK) installed on your machine. Open the project in your preferred Java IDE. Compile and run the WordleUI.java file to start the game. How to Play Upon starting the game, a five-letter word is randomly chosen from a predefined list. Enter a five-letter word guess into the text field provided. Click the "OK" button to submit your guess. The game will provide feedback on your guess: Green indicates correct letter and correct position. Yellow indicates correct letter but wrong position. Gray indicates incorrect letter. Continue guessing until you either guess the word correctly or exhaust all attempts. Game Controls Enter a five-letter word guess in the text field. Click the "OK" button to submit your guess. Use the "RESET" button to start a new game. Use the "CLEAR" button to clear the text field. Game Statistics Played: Total number of games played. Win Percentage: Percentage of games won out of total games played. Current Streak: Number of consecutive wins in the current session. Max Streak: Longest consecutive win streak achieved. Contributing Contributions to this project are welcome. If you find any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request.