Giter Site home page Giter Site logo

scrabble-tools's Introduction

Scrabble Tools

mnemonicfinder.py

usage: mnemonicfinder.py [-h] [-v] [--dict DICTFILE] [--maxlen MAXLEN]
                         [--minlen MINLEN] [--also ALSO]
                         charlist

Search the dictionary for mnemonic strings of words used to memorize a set of
characters.

positional arguments:
  charlist         List of characters to memorize

optional arguments:
  -h, --help       show this help message and exit
  -v               Allow mnemonics to optionally use any vowels
  --dict DICTFILE  Dictionary file to use
  --maxlen MAXLEN  Longest permitted length of word
  --minlen MINLEN  Shortest permitted length of word
  --also ALSO      Characters also permitted in mnemonic (but not required)

Example

Using the tool to memorise the list "abdeghilmnrstwxy", which are all the valid letters to place after an A on the Scrabble board.

$ python mnemonicfinder.py abdeghilmnrstwxy
==> MnemonicFinder v1.0
--> Loading dictionary...
--> Search string: abdeghilmnrstwxy
--> Generating...
--> Mnemonic: timberlands highway axe
--> Mnemonic: disenthral bigamy wax
--> Mnemonic: abridgment sixthly awe

Example: Free Vowels Mode

Using the tool to memorise the list "bdfhmnprswxy", which are all the consonants that can come after O on the Scrabble board.

$ python mnemonicfinder.py bdfhmnprswxy -v --dict dictcommon
==> MnemonicFinder v1.0
--> Loading dictionary...
--> Search string: bdfhmnprswxy
--> Generating...
--> Mnemonic: friends why box map
--> Mnemonic: finished army box power
--> Mnemonic: birds why fun map box
--> Mnemonic: brown pushed may suffix
--> Mnemonic: fresh body woman express
  • The -v option allows free use of vowels when searching for words.
  • This example uses the dictcommon word list, limiting the search to simple English words.

Results

  • I have developed a system for memorising the two-letter words in International Scrabble tournaments.
  • I have developed a system for memorising the two-letter words in US/Canada Scrabble tournaments.
  • My earlier attempt to do this is documented here for postereity. I had limited success finding mnemonics for small word lists because of the lack of vowels; this led to the development of the later versions of the algorithm which include the -v option for free vowel use. (Obviously this requires a different system of memorisation; one that treats consonants and vowels separately).

scrabble-tools's People

Contributors

teajaymars avatar jesstess avatar

Watchers

James Cloos avatar Frederick Wagner avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.