A fully interactive Wordle-style word guessing game built with Streamlit.
Players configure the word length and difficulty level, then attempt to guess the hidden word within a limited number of tries.
- Dynamic Game Configuration
- Choose word length (4, 5, or 6 letters)
- Select difficulty level (Easy / Normal / Hard)
- Color Feedback
- 🟢 Green (
#6AAA64) – correct letter & position - 🟡 Yellow (
#F9DC3C) – letter exists but wrong position - ⚪ Gray (
#A9A9A9) – letter not in the word
- 🟢 Green (
- Random Word Selection
- Words are chosen from a frequency-based dictionary to ensure fair play
- Responsive UI
- Built entirely with Streamlit (no JavaScript required)
- Works seamlessly in browser (desktop & mobile)
- Restart Button
- Instantly reset and start a new game without page refresh
-
Streamlit- interactive web interface -
Standard Library modules (
random,typing)
pip install -r requirements.txtThe current version uses open-source LLM model Llama3.2 to power the AI assistant in the sidebar.
In order to switch to a different model, simply change the model variable in st_app.py:
model = "llama3.2" # Change to your desired model nameBut, before switching, ensure that the model is compatible with the call_llama_func function in llama_utils.py.
You can use the following command to install Llama3.2:
- Go to the llama GitHub repository
- Follow the installation instructions provided in the repository to set up Llama3.2 on your local machine.
- You can install any other model by following the same steps, then customizing the
modelvariable inst_app.py.
