A modern web-based interface for the Wordle solver that resembles the original Wordle UI while incorporating all the solver functionality.
- Wordle-like UI: Clean, modern interface that looks and feels like the original Wordle
- Interactive Game Board: Visual representation of guesses with color-coded feedback
- User Guesses: Enter your own 5-letter words with validation
- Computer Assistance: Get optimal guesses or let the computer play
- Game Management: Start new games with random or custom words
- Undo Functionality: Return to any previous guess state
- Game History: View all previous guesses and their results
- Possible Words: See how many words remain possible after each guess
- Answer Toggle: Show/hide the target word
- Responsive Design: Works on desktop and mobile devices
-
Install Python dependencies:
pip install -r requirements.txt
-
Ensure word files are present:
potential.txt- List of potential target wordsacceptable.txt- List of acceptable guess words
-
Start the Flask server:
python app.py
-
Open your web browser and navigate to:
http://localhost:8000
- Enter a guess: Type a 5-letter word in the input field
- Submit: Click "Submit" or press Enter
- View results: See color-coded feedback (green = correct, yellow = wrong position, gray = incorrect)
- Continue: Make up to 6 guesses to find the word
- Get Optimal Guess: See what the computer thinks is the best next guess
- Computer Guess: Let the computer make the next guess automatically
- Show Answer: Toggle visibility of the target word
- New Game: Start a fresh game with a random or custom word
- Undo: Return to any previous guess state
- History: View all previous guesses and their statistics
- Possible Words: See how many words remain possible after each guess
- Game Status: Monitor current guess number and remaining possibilities
WordleSolver/
├── app.py # Flask web application
├── main.py # Original Wordle solver logic
├── requirements.txt # Python dependencies
├── acceptable.txt # Acceptable guess words
├── potential.txt # Potential target words
├── templates/
│ └── index.html # Main HTML template
└── static/
├── css/
│ └── style.css # CSS styles
└── js/
└── script.js # JavaScript functionality
The web interface communicates with the backend through these API endpoints:
GET /api/game/status- Get current game statusPOST /api/game/new- Start a new gamePOST /api/game/guess- Make a guessGET /api/game/optimal-guess- Get computer's optimal guessPOST /api/game/computer-guess- Make computer's guessGET /api/game/toggle-answer- Toggle answer visibilityPOST /api/game/undo- Undo to a specific guessGET /api/game/history- Get game historyGET /api/game/possible-words/<guess_number>- Get possible words for a guess
- Backend: Flask web framework with RESTful API
- Frontend: Vanilla JavaScript with modern CSS
- Styling: Responsive design with CSS Grid and Flexbox
- Animations: CSS transitions and keyframes for smooth interactions
- Word Lists: Uses the original
potential.txtandacceptable.txtfiles
The web interface works on all modern browsers:
- Chrome/Chromium
- Firefox
- Safari
- Edge
- Port already in use: Change the port in
app.py(line 108) - Word files not found: Ensure
potential.txtandacceptable.txtare in the project directory - Dependencies not installed: Run
pip install -r requirements.txt