Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/husain-zaidi/wordle-llm-solver
Wordle solver agent using Semantic kernel to prompt Large language models.
https://github.com/husain-zaidi/wordle-llm-solver
gpt large-language-models prompt-engineering semantic-kernel wordle-solver
Last synced: 3 months ago
JSON representation
Wordle solver agent using Semantic kernel to prompt Large language models.
- Host: GitHub
- URL: https://github.com/husain-zaidi/wordle-llm-solver
- Owner: husain-zaidi
- Created: 2023-06-17T14:04:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-17T14:07:04.000Z (over 1 year ago)
- Last Synced: 2024-10-14T19:02:41.861Z (3 months ago)
- Topics: gpt, large-language-models, prompt-engineering, semantic-kernel, wordle-solver
- Language: Python
- Homepage:
- Size: 461 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-semantickernel - LLM-Powered Wordle-Solver Agent - solving script powered by LLM (Large Language Model) and built using Semantic Kernel and PyAutoGUI. (Open Source Projects)
README
# LLM-Powered Wordle-Solver Agent
This is a Wordle-solving script powered by LLM (Large Language Model) and built using Semantic Kernel and PyAutoGUI.
![Wordle solver winning!](images/wordleWins2.png "Wordle-Solver winning!")
## Prerequisites
In order to run this program, you will need the following:
- Python 3.7 or higher
- PyAutoGUI library installed
- Semantic Kernel installed
- OpenAI keyThis script works by utilizing the power of LLMs to play Wordle like a Human. The program takes a screenshot of the Wordle game, observes the result colors, and then generates a guess word based on the history and the letters available in the puzzle.
The program then uses PyAutoGUI, a library for automation of keyboard and mouse functions, to input the potential solutions into the Wordle game and check their correctness. It repeats this process until the guess word have been successfully guessed or the number of guesses is reached.
## How to run
Open https://www.nytimes.com/games/wordle/index.html and keep the browser window visible on screen (required for pyautogui)
Add your OpenAI key and orgid in ```.env```
```
OPENAI_API_KEY=
OPENAI_ORG_ID=
```Open a terminal or command prompt and navigate to the directory where the program is located.
Run the program by typing the following command:
```
python wordle-solver-agent.py
```Sit back and relax as the program solves the puzzle for you!
## Conclusion
While GPT 3.5 struggles, GPT 4 solves with ease. ```prompts``` file contains some versions of the prompt that were tested.