• Stars
    star
    138
  • Rank 264,508 (Top 6 %)
  • Language
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

List of possible wordle words

wordle-list

A randomly-ordered list of all possible words that are potentially valid guesses in wordle, taken straight from the game's source code. Use it like:

curl -s https://raw.githubusercontent.com/tabatkins/wordle-list/main/words | grep ...

Filtering Guesses With grep

If you're not familiar with using grep, it's very easy for use-cases like this; you only need the tiniest amount of regex knowledge.

Say you make the following two guesses:

 D R U N K
โฌ›๐ŸŸฉโฌ›๐ŸŸจโฌ›

 F I G H T
โฌ›โฌ›๐ŸŸจโฌ›โฌ›

Then you can whittle down the wordlist with the following chain of greps:

curl -s ... | grep -v [dukfiht] | grep .r... | grep n | grep -v ...n. | grep g | grep -v ..g..

which'll return the following list of potentially valid words:

groan
green
grown

The general structure of the chain of greps is always the same:

  1. Remove all the letters that returned a black tile with grep -v [abcd], putting all the rejected letters between the square brackets. grep -v means "reject anything that matches this pattern", and the pattern will match any word containing one of those letters.
  2. Force any letters that returned a green tile with grep .a..b, putting the letters in their appropriate spot and using . for anything you haven't gotten a green on yet. Make sure to pass all five characters, or else it'll match incorrectly.
  3. For any tile with a yellow, first filter for words containing the letter with grep a, then filter out words with the letter in that position with grep -v ..a..; repeating more pairs if you have multiple yellow letters. Again, make sure to include .s to fill out a full five characters, or else it'll match incorrectly.

If you used any doubled letters in your guess, it's potentially more complicated:

  • if both came up black, or both came up green, then it's fine. Just follow the above instructions like normal.
  • if one came up yellow and other came up yellow or green, it means the word definitely has two of that letter. Just follow the instructions above, but manually ignore any word that doesn't have that letter twice.
  • if one came up yellow/green and the other came up black, it means the word definitely has only one of that letter. Ignore the black tile but otherwise follow the instructions above, and manually ignore any words that do have that letter twice.

(These situations can be handled with regexes, but it's more complicated and not really worth explaining.)

More Repositories

1

railroad-diagrams

๐Ÿš‚ A small JS+SVG library for drawing railroad syntax diagrams, like on JSON.org. Now with a Python port!
Python
1,561
star
2

parse-css

๐Ÿ‡ Standards-based CSS Parser
JavaScript
328
star
3

specs

๐Ÿ“ Spec proposals that aren't yet approved by the relevant Working Group.
HTML
176
star
4

recipe-db

Database of recipes used by http://xanthir.com/recipes/
37
star
5

password

๐Ÿ™ˆ A password hasher, for the generation of passwords.
HTML
29
star
6

css-toggle

Proposal for a CSS Toggle spec
HTML
28
star
7

Markdown

โฌ‡๏ธ A state-machine-based Markdown parser.
PHP
28
star
8

symbols

https://tabatkins.github.io/symbols Easy access to commonly-needed symbols that aren't on your keyboard.
HTML
23
star
9

depixel

๐ŸŽ‡Depixelating Pixel Art
15
star
10

bignum

๐Ÿ”Ÿ JS Bignum classes
JavaScript
12
star
11

roll

๐ŸŽฒ An exact-results dice-rolling library, for answering dice-related stat questions.
JavaScript
10
star
12

kdlpy

Handwritten KDL parser in Python 3
Python
9
star
13

JSONDB

A JSON datastore in PHP
PHP
6
star
14

sublime-tweets

A syntax file for Sublime Text that helps you edit tweets, by checking tweet length for you.
6
star
15

katex

Python port of the KaTeX math rendering library
JavaScript
4
star
16

highlighter

A self-contained *markup-preserving* syntax highlighter, powered by Pygments. Usable from command-line or as a Python module.
Python
4
star
17

proposal-call-this-operator

TC39 Proposal for a "call" operator, moving `fn.call()` to `fn::()`
3
star
18

proposal-dom-el

Proposal for a better element-creation API
3
star
19

life

My Life, as managed by Git
1
star
20

cssmath

โŠ•โŠ–โŠ—โŠ˜ Testing ground for a template-tag-based DSL for CSS math
1
star
21

tabatkins.github.io

HTML
1
star
22

animal-diet

Personal project for managing animal diet sheets.
HTML
1
star
23

bikeshed-tests

All the Bikeshed you can eat!
Python
1
star
24

proposal-local-font-access

Proposal for a way to access local fonts to a page in a privacy-preserving way, and cache them to the rest of the origin.
1
star
25

flippintables

Trivial Twitter API script that runs the FlippinTables account
PHP
1
star
26

unbias

HTML
1
star