This repository contains a Dart implementation of the popular word guessing game, Wordle. The game randomly selects a target word from a predefined set of words and challenges the player to guess the target word within a limited number of turns.
-
Clone or download this repository to your local machine.
-
Make sure you have Dart SDK installed. You can download it from the Dart website.
-
Open a terminal or command prompt and navigate to the directory containing the downloaded files.
-
Run the game by executing the following command:
dart wordle_game.dart
-
The game will prompt you to enter a word of five letters. Each incorrect guess will deduct a turn, and you have a limited number of turns to guess the target word.
-
You can quit the game at any time by entering 'Q' or 'q'.
- The target word is randomly selected from a predefined list of words.
- Each guess is evaluated, and feedback is given to help the player refine their guesses.
- Characters in the correct position are indicated as correct characters.
- Characters in the wrong position but present in the target word are indicated as correct characters in the wrong place.
- Characters not present in the target word are indicated as wrong characters.
- The game ends when the player correctly guesses the target word or runs out of turns.
wordle.dart
: The main game logic and user interaction are implemented in this file.first_list.dart
andsecond_list.dart
: These files contain sets of words used for selecting the target word.
Feel free to contribute to this project by suggesting improvements, fixing bugs, or adding new features. Create a pull request with your changes, and they will be reviewed by the maintainers.
This project is licensed under the MIT License.
Enjoy playing Wordle in Dart!