Solving Word Games with Rust

If you enjoy word games (such as cryptic crosswords) as I do, then this is a really useful tool for you.

It can be used in many ways. For example, if you’re trying to solve an anagram, you could type lookup GSNIGNI and it will give you output like this:

      S
        G
  N       G
    I   N
      I

  _ _ _ _ _ _ _

If you have some found letters, you can add them, for example, lookup GSNIGNI -f ..g...g and it will show:

    I   N

  S       I

        N

  _ _ G _ _ _ G

Where it becomes more clear that the answer would be “signing”.

If you’re totally stuck, you could append -a to your command, i.e. lookup GSNIGNI -f ..g...g -a and it will show you all valid words which are anagrams of your search string which fit the “found” letters. In this case it just returns “signing”.

There are lots of other options, including straight lookup, regex searches (if you understand how to use them), definitions, and support for other word games like Wordle, Panagrams, and Spelling Bee.

It’s written in Rust and the source is all available at https://github.com/md81544/lookup

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.