Little python script + dictionary to help solve Wordle puzzles

Overview

Wordle Solver

Little python script + dictionary to help solve Wordle puzzles

Usage

Usage: ./wordlesolver.py [letters in word] [letters not in word] [placemen]t

  • [letters in word] is just any letters that you know are in the word, without spaces, for example: fa
  • [letters not in word] is just any letters that you know are not in the word, without space, for example: bqwetl
  • [placement] should have the actual placement for any letters that went green, with any unknowns marked as an underscore, for example f___r

Important

If you can't fill out one of these fields because you don't yet have enough information, just replace it with a single question mark "?".=

Demo

wordlesolver$ python3 wordlesolver.py fa bqwetl f___r
Loaded 15918 words from dictionary.
fakir
favor
fchar
friar

Protip

  • Try to use as many vowels as possible on the first guess, my first guess is always adieu.
  • Actually, according to this you might be better to use roate as your first guess!

Want something better?

I just discovered this one - it uses an algorithm to determine the best guess in every scenario, the guess that will narrow down the pool of solutions as much as possible!

You might also like...
Implementation of hashids (http://hashids.org) in Python. Compatible with Python 2 and Python 3

hashids for Python 2.7 & 3 A python port of the JavaScript hashids implementation. It generates YouTube-like hashes from one or many numbers. Use hash

Python character encoding detector

Chardet: The Universal Character Encoding Detector Detects ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants) Big5, GB2312, EUC-TW, HZ-GB-2312, IS

Fuzzy String Matching in Python

FuzzyWuzzy Fuzzy string matching like a boss. It uses Levenshtein Distance to calculate the differences between sequences in a simple-to-use package.

The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity

Contents Maintainer wanted Introduction Installation Documentation License History Source code Authors Maintainer wanted I am looking for a new mainta

Paranoid text spacing in Python

pangu.py Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width charact

An implementation of figlet written in Python

All of the documentation and the majority of the work done was by Christopher Jones ([email protected]). Packaged by Peter Waller [email protected],

Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.

TextDistance TextDistance -- python library for comparing distance between two or more sequences by many algorithms. Features: 30+ algorithms Pure pyt

Python flexible slugify function

awesome-slugify Python flexible slugify function PyPi: https://pypi.python.org/pypi/awesome-slugify Github: https://github.com/dimka665/awesome-slugif

Python Lex-Yacc

PLY (Python Lex-Yacc) Copyright (C) 2001-2020 David M. Beazley (Dabeaz LLC) All rights reserved. Redistribution and use in source and binary forms, wi

Comments
  • list index out of range

    list index out of range

    Relitively new to python and can't get it to run without this error (using spyder). I'm just running the code so should I be putting the letters anywhere specific?

    Usage: ./wordlesolver.py is just any letters that you know are in the word, without spaces, e.g. vr is any letters that you know are NOT in the word, without spaces, e.g. qxu should have the actual placement for any letters that went green, with any unknowns marked as an underscore, for example __v_r

    NOTE: if you do not have enough information to fill out one of these fields, replace that field with a single question mark "?" Loaded 15918 words from dictionary. Traceback (most recent call last):

    File "C:\Users\ollie\Downloads\wordlesolver-main\wordlesolver-main\wordlesolver.py", line 33, in if not set(sys.argv[1] + sys.argv[2]) <= allowed:

    IndexError: list index out of range

    opened by olliemush 2
Owner
Luke Stephens (hakluke)
Internet Ninja.
Luke Stephens (hakluke)
JSON and CSV data for Swahili dictionary with over 16600+ words

kamusi JSON and CSV data for swahili dictionary with over 16600+ words. This repo consists of data from swahili dictionary with about 16683 words toge

Jordan Kalebu 8 Jan 13, 2022
Correcting typos in a word based on the frequency dictionary

Auto-correct text Correcting typos in a word based on the frequency dictionary. This algorithm is based on the distance between words according to the

Anton Yakovlev 2 Feb 5, 2022
Word-Generator - Generates meaningful words from dictionary with given no. of letters and words.

Meaningful Word Generator Generates meaningful words from dictionary with given no. of letters and words. This might be useful for generating short li

Mohammed Rabil 1 Jan 1, 2022
A neat little program to read the text from the "All Ten Fingers" program, and write them back.

ATFTyper A neat little program to read the text from the "All Ten Fingers" program, and write them back. How does it work? This program uses the Pillo

null 1 Nov 26, 2021
Wordle strategy: Find frequency of letters appearing in 5-letter words in the English language

Find frequency of letters appearing in 5-letter words in the English language In

Gabriel Apolinário 1 Jan 17, 2022
A minimal python script for generating multiple onetime use bip39 seed phrases

seed_signer_ontimes WARNING This project has mainly been used for local development, and creation should be ran on a air-gapped machine. A minimal pyt

CypherToad 4 Sep 12, 2022
Deasciify-highlighted - A Python script for deasciifying text to Turkish and copying clipboard

deasciify-highlighted is a Python script for deasciifying text to Turkish and copying clipboard.

Ümit Altıntaş 3 Mar 18, 2022
A working (ish) python script to convert text to a gradient.

verticle-horiontal-gradient-script A working (ish) python script to convert text to a gradient. This script is poorly made with the well known python

prmze 1 Feb 20, 2022
A Python3 script that simulates the user typing a text on their keyboard.

A Python3 script that simulates the user typing a text on their keyboard. (control the speed, randomness, rate of typos and more!)

Jose Gracia Berenguer 3 Feb 22, 2022
This script has been created in order to find what are the most common demanded technologies in Data Engineering field.

This is a Python script that given a whole corpus of job descriptions and a file with keywords it extracts the number of number of ocurrences of these keywords and write it to a file. This script it is easy to extend to accept more functionalities

Antonio Bri Pérez 0 Jul 17, 2022