Algorithm to solve Wordle correctly 100% of the time within 6 attempts.

Overview

WordleSolver

© Zulkarnine, 2022.

Algorithm to solve Wordle 100% of the time within 6 attempts.

  • You can go ahead and run main.py to run it for all 2315 Wordle words and it solves 100% of them correctly within 6 attempts. Example output:
Ran: 2315 games.
Solved: 2315/2315 = 100.00%
  • You can also run solver.py to get a sense of how it's guessing and what is the Wordle game simulation returning. (I.e. the colored blocks)

Example output:

====================
Game: 1
====================
Remaining Candidate: 2315
Guessing: alert 🟩️⬜️⬜️⬜️⬜️ Remaining Candidate: 20
Guessing: noisy ⬜️⬜️⬜️⬜️⬜️ Remaining Candidate: 1
Guessing: aback 🟩️🟩️🟩️🟩️🟩️ Actual word: aback

====================
Game: 2
====================
Remaining Candidate: 2315
Guessing: alert 🟩️⬜️🟨⬜️⬜️ Remaining Candidate: 20
Guessing: bison 🟨⬜️🟨⬜️⬜️ Remaining Candidate: 2
Guessing: abuse 🟩️🟩️⬜️🟩️🟩️ Remaining Candidate: 1
Guessing: abase 🟩️🟩️🟩️🟩️🟩️ Actual word: abase
  • Also, if you want to use this solver to play against an actual game you can run the rewordle.py and follow the instructions on the prompt. While writing the response follow the following pattern:
🟩️⬜️🟨⬜️⬜️ -> gbybb

Disclaimer: There are lots of scope to optimize the solving part and minimize redundant calculations. Any contribution is welcome.

You might also like...
Wordle-player - An optimal player for Wordle. Based on a rough understanding of information theory

Wordle-player - An optimal player for Wordle. Based on a rough understanding of information theory

Wordle Tas Tool is a terminal application for solving Wordle puzzles

Wordle Tas Tool Terminal application for solving Wordle puzzles Wordle Tas Tool (WTT) is a Python script that iterates over SCOWL95 to solve Wordle pu

Wordle Solver: A simple script which is also called Wordle solver
Wordle Solver: A simple script which is also called Wordle solver

wordle-solver this code is a simple script which is also called Wordle solver. t

Wordle-prophecy - The comprehensive list of all Wordle answers, past and future

About This repo contains the comprehensive list of all Wordle answers, past and

To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.
To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.

To solve games using AI, we will introduce the concept of a game tree followed by minimax algorithm.

This repository contains algorithm and solver for the game WORDLE
This repository contains algorithm and solver for the game WORDLE

Wordle-Cracker This repository contains algorithm and solver for the game WORDLE How to use Run the program: python main.py Type in the guess word in

A short non 100% Accurate Solar System in pygame

solar-system-pygame Controls UP/DOWN for Emulation Speed Control ESC for Pause/Unpause q to Quit c or ESC again to Continue LEFT CLICK to Add an orbit

Simple implementation of the classic Snake Game in under 100 lines of code
Simple implementation of the classic Snake Game in under 100 lines of code

Snake_Game Simple python implementation of the classic Snake Game in under 100 lines of code. Printscreen of the game: Imported Libraries: random; pyg

Comments
  • specify first guess

    specify first guess

    I wanted to play around with probability of first guesses using the rewordle script. Is there a way I could specify what the first guess should be? I'm not exactly sure how it's figuring out what to present for round one.

    It would also be cool if the first guess returns no hits, to specify what should be guessed next. Trying to come up with an optimal guess pattern.

    opened by poxin13 0
Owner
Zulkarnine Mahmud
Software Engineer at Google
Zulkarnine Mahmud
A very bad wordle solver to help me solve the daily wordle

Wordle Solver A very bad wordle solver to help me solve the daily wordle on https://www.powerlanguage.co.uk/wordle/ TODO list take into account letter

Logan Anderson 4 Feb 3, 2022
Wordle is a web-based word game. Players have six attempts to guess a five-letter word;

Wordle is a web-based word game. Players have six attempts to guess a five-letter word; feedback is given for each guess, in the form of colored tiles, indicating when letters match or occupy the correct position. This program helps solving wordle problems.

Abhishek 2 May 21, 2022
A small script to help me solve Wordle because I'm that lazy

Wordle Solver A small script to help me solve Wordle because I'm that lazy. Warning: I didn't write this to be efficient nor elegant at all, so you'll

K4YT3X 3 Feb 11, 2022
A python script to solve Wordle puzzles

Wordle solver A python script to solve Wordle puzzles.

Felix Weinberger 1 Feb 12, 2022
Wordle-helper: python script to help solving wordle game

wordle-helper This is a python script to help solving wordle game 5-letter-word-

MD Nur Ahmed 2 Feb 8, 2022
This is a python implementation of wordle, which uses the same set of available words as the hit game, Wordle

Wordle Game This is a python implementation of wordle, which uses the same set of available words as the hit game, Wordle. Play the game manually pyth

Pierre Theo Klein 11 Mar 4, 2022
Wordle player - A Class that plays wordle optimally

wordle_player A Class that plays wordle optimally if you want to play wordle opt

Andrés Hernández 1 Jan 31, 2022
Wordle - Wordle Clone With Python

Wordle Clone Python This is a cli clone of the famous wordle game developed by J

Shivam Pandya 20 Jul 7, 2022
Wordle-Python - A simple low-key clone of the popular game WORDLE made with python and a 2D Graphics module Pygame

Wordle-Python A simple low-key clone of the popular game WORDLE made with python

Showmick Kar 7 Feb 10, 2022
Wordle - Implementation of wordle and a solver

Wordle - Implementation of wordle and a solver

Kurt Neufeld 1 Feb 4, 2022