Geekahedron

Wordle-style Solver

Any word list, any length. Enter your clues, pick how to score, and see what each next guess would leave.

Page

Game setup loading…

Wordle opens on the NYT WordleBot lists from this host’s cache. ENABLE presets (packs/wordle-en.json, 4–8 letters, including a 5-letter reference list) stay in the menu for other word games. Guess mode and the solution layer sit on the loaded pack. Apply setup uses the text in the boxes; choosing a WordleBot list above uses the cached copy. To read or edit a pack’s JSON, open the Create tab.

Clues so far

Result codes: green G/2/c/🟩 · yellow Y/1/p/o/🟨 · gray B/R/X/W/0/-/. /⬛/⬜. Or type the guess and tap tiles. A pack with more marks (Dungleon) cycles every mark.

Keys type into the highlighted box. Backspace and Enter follow that box. The physical keyboard still works. Pictures are only how a token is drawn; the letter code is still the guess.

Remaining answers: –

Show known list
Show theoretical list

Suggested next guesses

From this position, every answer still in the list must be finishable in at most n further guesses, counting the guess being scored. Later guesses follow the active guess mode and hard-mode rules on every step, the same continuation rules as expected steps. n starts at 6 minus clues already entered (a Wordle budget) and updates as clues are added or undone, until you edit the number. Steps is the average number of guesses. Max steps is the worst-case number. Worst is only the largest group this one guess leaves. With the box checked, the current scoring mode — including fewest expected steps — ranks only the guesses that proved Max steps ≤ n. On a long list the Max steps search beams continuations and keeps a guess only when a line is proved; an unproved guess is never treated as guaranteed. A full English opening often returns nothing that way. Tree is the other view: pick one starting word, play out a strategy, and see which answers exceed n.

#GuessStepsExp. leftWorstMax stepsPatternsBitsAns?

Tap a row to see its full breakdown below. Guess mode is any, dictionary, hard, or answers-only. Wordle hard (the menu above) only forces reused greens and yellows; the guarantee applies that rule on every later guess, not only the next one. The solution layer chooses which remaining list the scorer partitions. Steps is the average number of guesses. Max steps is the multi-ply worst case. Worst is only the biggest one-ply group.

Steps is the expected number of guesses to finish, with each remaining answer equally likely (no frequency weights). The guess you are scoring counts as 1; an all-green reply adds nothing further. Later guesses follow the active guess mode and hard-mode rules. Sets of 2–3 answers use a closed form. Exact through 5 answers (at most 64 guesses tried at one of those nodes). A dictionary larger than 280 is cut to that many probes for the whole search, and the answers still in the set are always added back. Every guess in the pool is valued when at most 40 answers remain and the pool has at most 20000 rows; above that, deepen a beam of 18 expected-remaining, 6 entropy, and 6 worst-case guesses. Larger sets continue with the top 1 one-ply pick from 40 candidates. A trailing ≈ used one of those cuts. Guesses outside the beam show –. The built-in English lists are not the NYT Wordle lists. The live WordleBot pack uses WordGamesBot’s public copy of those lists and the same caps, and every remaining answer is still equally likely, so neither opening matches Wordlebot’s published average. “Max guesses to score” still limits which openers are deepened.

Breakdown

Opener solve tree

Pick a starting guess and expand its decision tree on the answers still possible. After the opener, each result shows the next guess and the words that remain — the same shape as Jonathan Olson’s solver. This tree is built in the browser for the list you have loaded. It is not his precomputed NYT Wordle tree: the built-in packs are ENABLE subsets (SALET and SOARE are not in them; TARPS is on the guess list). The live WordleBot pack is a separate third-party copy of the NYT lists. Every answer is equally likely, and a long hard-mode list is too big for an exhaustive proof. The guarantee checkbox is unchanged and still fail-closed. Here one concrete strategy is played instead. Later guesses use the active guess mode and hard-mode rules. n is further guesses from here, starting at 6 minus clues already entered. Scan openers tries starters in order until one of those strategies finishes within n. The table lists each starter’s expected information in bits.

Guess mode, hard mode, and the solution layer are the same settings as Analysis. Wordle hard reuses greens and yellows on every later guess in the tree.

Scan openers tries each starter in order and stops at the first played strategy with max depth ≤ n. A shortlist line that finishes within n counts; the stronger “guaranteed” label is not required. Order: the pack’s opener list when it has one (English Wordle and the live WordleBot pack: SLATE, TARPS, CRANE, CRAMP, TRACE, STARE, CRATE, RAISE, ALERT, LATER), skipping any that are not legal guesses in the loaded pack. A pack with no list is ranked by expected information in bits (top 10). Guess mode Any also ranks a bounded sample of other alphabet strings, including the other case of a letter when the pack has it, and keeps whichever of those score the most bits. Dictionary mode stays on the lists. The sample is not every possible string. When 16 or fewer answers remain, it continues with those answers, then other dictionary guesses, then answers already ruled out, up to 40 more. The scan uses this card’s hard mode, guess mode, solution layer, later-guess policy, budget n, and the clues already entered.

Create game

A game is a JSON pack. Pick a built-in pack to read the file it shipped with, copy it into the editor, or start from the template. Try it loads the definition in this browser only. Nothing is uploaded. The editor does not run JavaScript you paste.

View on GitHub


    
Sprites and images

The keyboard and the tiles each choose a picture: an individual image, then a cell of the sheet, then the plain character. Pick sprite or image to force one of those, or auto for that order. A local file stays in this browser and is not written into the JSON.

Sprite sheet

Load a sheet, click a numbered cell, then click a token.

Keyboard preview

Tile preview

CellSheet nameToken

Individual images

TokenLabelImage URLPreview
Import JSON
Packs saved from this tab
Field reference

Full notes: docs/pack-format.md. Paths below are the keys the checker reports when something is wrong.

id, name
Short id (letters, digits, _, -) and the name shown in the preset menu.
alphabet
A string of one character per token when delimiter is none ("abcdefghijklmnopqrstuvwxyz", or Dungleon’s "WAMKVBSsDTNOowtFZCcR"). Otherwise an array of tokens (["AS","10C"]). Empty means any token. Case is kept when caseInsensitive is false, so S and s are different entities.
delimiter
none (one code point per token), charset (split on spaces and commas), or fixed (split on delimiterValue, default -). Case folding happens before the split, and only when caseInsensitive is true.
length
On each variant (or once at the top level). An integer from 1 to 20. A word is a list of that many tokens.
pools.theoretical
guessList — theoretical solutions are the guess list plus the known answers that pass the rules (English). known — reserved; known rows are still marked theoretical today. alphabet — reserved; the engine does not expand alphabet^length. generated — a shipped rules script fills the pool. Only rules/dungleon.js does that here. A known answer that fails the generator stays on the known list.
variants[].knownSolutions, guessList
The answer list and the optional extra guess list. Each one may be an array of words, a file name that ships under src/packs/ (Try it can read those), or an http(s) URL of a plain text list, one word per line. Try it fetches that URL in this browser and stores the words here, so nothing is uploaded and the pack still opens if the URL is down later. JavaScript const arrays are not parsed. The WordleBot remote block is a host cache of those files and is rejected in this editor.
clueShape, clueAlphabet, clueCaseSensitive
perSlot is one mark per token. whole is one clue for the guess (parsed, not scored, until a script defines it). mixed is reserved. Each mark has id, value (0, 1, 2, …), label, and symbols the result box accepts. role is absent, present, or correct. solve: true is the all-green mark. paint is the tile color (b, y, g, yp, gp). clueCaseSensitive: true keeps y and Y as different marks.
feedback, rules
feedback is wordle (extra copies go gray), simple (any present token goes yellow), or custom. rules is builtin:wordle, builtin:simple, or script:rules/….js. A script must export validGuess, validSolution, and consistent. Try it will load a script only when it is a file that already ships here (rules/wordle.js, rules/dungleon.js). Pasted JavaScript is never run. feedback: "custom" needs that shipped script; the page then uses its marks for the remaining list and for Analysis.
guessMode
any — any tokens of the right length may be typed. Suggestions add a bounded sample of other alphabet strings (not every possible string) and rank them with the lists. dictionary — validGuess (the lists). hard — the guess must fit every clue. answersOnly — only rows still in the active remaining layer. Wordle hard (reuse greens and yellows) is a separate, weaker switch on the Analysis card.
openers
Starter guesses, on the pack or on one variant. A variant array replaces the pack list. The Tree quick picks use that list, in order, after dropping words that are not legal guesses. Omit it and the page ranks a bounded set by expected information.
gauntlet
Optional and pack-level. true or { "floors": 3 } (an integer from 2 to 6) adds a Normal / Gauntlet toggle for this pack only. Dungleon uses three floors. One entity has to appear in every floor. A variant cannot set this.
tokenRenderer, clueRenderer
Tile chrome: tiles/letters, tiles/cards, tiles/dungleon (letters without forced capitals). Clues: clues/wordle-gyb, clues/arrows-lr, clues/mastermind-pips. These pick the tile shape. Pictures come from appearance.
appearance (alias images)
Optional. Omit it and every token is drawn as its letter. sheet is a sprite sheet: url (http, https, or a relative path), cellWidth, cellHeight, columns, and optional rows, offsetX, offsetY, gapX, gapY. entities is keyed by the alphabet token, case-sensitive. Each entry may have label, title, image (its own picture), and sprite as { "index": 0 } or { "col": 0, "row": 0 }. keyboard.source and tiles.source are auto (image, then sprite, then the letter), image, or sprite. A picture that fails to load shows the letter. data: and javascript: URLs are ignored. The sprite editor on this tab writes this object.
keyboard.rows
Optional rows of alphabet tokens for the on-screen keyboard. Each string is inserted exactly, so "s" and "S" are different keys. A case-insensitive a–z alphabet with no keyboard uses QWERTY. Any other alphabet is wrapped in pack order. Backspace and Enter are added by the page.
{
  "id": "sprites-demo",
  "name": "Sprite demo",
  "delimiter": "none",
  "caseInsensitive": false,
  "alphabet": "AB",
  "rules": "builtin:wordle",
  "feedback": "wordle",
  "keyboard": { "rows": [["A", "B"]] },
  "appearance": {
    "sheet": {
      "url": "https://example.com/sprites.png",
      "cellWidth": 32,
      "cellHeight": 32,
      "columns": 2
    },
    "entities": {
      "A": { "label": "Alpha", "sprite": { "index": 0 }, "image": "https://example.com/a.png" },
      "B": { "label": "Beta", "sprite": { "x": 1, "y": 0 }, "image": "https://example.com/b.png" }
    }
  },
  "variants": [{ "id": "sprites-demo", "name": "Sprite demo", "length": 2, "knownSolutions": ["AB", "BA"] }]
}