View on GitHub

Extreme WordCube

Searching rule-constrained word permutations

Maximizing WordCube words

The wordcube game (really it’s a square) involves finding all possible words that you can spell using the given tiles. The words must be length 4 or higher, and must use the center tile.

So what is the hardest possible wordcube board? Well, it’s hard to say, but we can start by finding the one with the most possible words.

The directed acyclic word graph, or DAWG, is a powerful tool for prefix completion. Using this, it is relatively trivial to generate all word permutations of every 9-length word, and from there find the pair of (9-length word, constraining letter) with the most valid permutations (according to the rules of wordcube).

The code for generating permutations can be found here, which is based on a scrabble-focused extension of the DAWG-Python library.

This word (it’s a secret) has a whopping 592 valid permutations! That is, it is possible to make 592 words of length 4 or greater that all use the center tile (in this case, ‘e’).

Note that I don’t have access to the dictionary/wordlist that the original author of wordcube uses, so there may be some differences. This wordcube uses the Enhanced North American Benchmark Lexicon 2k (ENABLE2k) word list, commonly used for scrabble or words with friends. This word list tends to include some uncommon, niche, and obscure technical words, so be warned.

Try it below!


words found: 0 out of 0


Minimizing WordCube words

We can also find the wordcube with the minimum number of permutations. It turns out that the minimum permutations is one: there exists a word whose only permutation, given the constraining letter, is itself.

In fact, there are three such words: monocoque, with the constraining letter q, kibbutzim, with the constraining letter m, and the word in the wordcube below.

Notably, the word in the wordcube below is its own only permutation when constrained with either v, i, or o.


words found: 0 out of 0


Larger WordCubes

We can find permutations for words of any length. There are two 25-letter words (in the ENABLE2k dictionary), which means we can make a 5x5 wordcube.

Below is the 5x5 wordcube with the most possible permutations. Good luck!


words found: 0 out of 0