This project provides a Wordle solver that can play the game automatically or manually. It uses strategic guessing algorithms to maximize efficiency and provides insights into success rates and average guesses.
wordle.py: Implements the Wordle game logic.guesser.py: Contains theGuesserclass for automatic word guessing.game.py: Main script for running the solver, either manually or automatically.wordlist.yamlanddev_word_list.yaml: YAML files containing a list of potential Wordle words that the solver uses for generating guesses and refining its strategy.
Run the solver for a specified number of games using the --r argument to define the number of games to simulate:
python game-2.py --r <number_of_games>Example:
python game-2.py --r 100This will simulate 100 games and provide:
- The percentage of words guessed correctly.
- The average number of guesses required.
To play the game manually, omit the --r argument:
python game-2.pyFollow the on-screen prompts to input guesses interactively.