Ibexicon

Aug 2025 · Personal project, after CSE 250A (Probabilistic Reasoning and Learning)

Ibexicon is a Wordle solver for words of any length, from 1 letter to 53. You type in your guesses and the colors you got back, and it ranks the best next guesses. I built it in a week in August 2025, with what CSE 250A had taught me about information gain.

How it picks a guess

A guess splits the words that are still possible by the color pattern it would get back. The more evenly it splits them, the more you learn, and that's what expected information gain (EIG) measures. The chance that the guess is the answer measures whether it can win right now. The score mixes the two:

score=α⋅EIG+(1−α)⋅P(answer)

With thousands of words left, α is near 1 and the solver explores. As the list shrinks and the turns run out, α falls and it goes for the win. It's a sigmoid on the log of the number of words left, plus a push from the turns remaining, kept between 0.1 and 0.95. An optional Thompson-sampling bandit can also choose among five scoring policies as you play.

You can share a game with a link that encodes the board. The answer never appears in it, because the app never knows it.

Making it fast

Scoring every guess against every possible answer takes a lot of color patterns.

Results

I simulated 1,000 games at each length from 4 to 8 letters, with six guesses and answers drawn by how common each word is:

Letters Solved Average guesses when solved
4 977 2.98
5 989 2.83
6 997 2.73
7 998 2.54
8 1,000 2.39

Longer words are easier, since each guess tells you about more letters.

The app is React and TypeScript with 85 tests: Vitest, property tests with fast-check, and a Playwright end-to-end test. It deploys to GitHub Pages only after the tests pass and a Lighthouse accessibility check scores at least 0.95.