Skip to content
This repository was archived by the owner on Sep 16, 2019. It is now read-only.
/ spoilerpress Public archive

Playing around with solutions for a Letterpress solver. Just for interest's sake, honest.

License

Notifications You must be signed in to change notification settings

BigglesZX/spoilerpress

Repository files navigation

Spoilerpress

A quick and dirty Letterpress solver. Finds the longest dictionary words you can play with the given selection of letters.

Spoilerpress uses the official Letterpress English dictionary, iterating each of the words within and testing if they can be made using the supplied letters.

Fun fact: my initial version was the other way around, attempting to iterate all possible arrangements of letters on the given board and testing each for presence in the dictionary. It didn’t take me long to realise that this involved 25 factorial combinations which would take something like 491,857,243,785 years (seriously) to complete with a single CPU, at 1,000,000 guesses per second (which I found to be reasonable in testing). So I gave up on that approach.

It’s up to you to decide how best to use the words strategically. I didn’t want to completely ruin the game. Good luck.

Usage

$ python spoilerpress.py PITBUWZRSVOIRNOBFAENPLSXA

You can specify the length of the list of longest words (defaults to 10):

$ python spoilerpress.py -n 20 PITBUWZRSVOIRNOBFAENPLSXA

About

Playing around with solutions for a Letterpress solver. Just for interest's sake, honest.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages