pysc
Kashev Dalmia | @kashev | [email protected]
README.md
A Scrabble cheater written in Python. Includes multiple dictionaries, including SOWPODS and the Words With Friends Dictionary.
I wanted this software because the ability to use different dictionaries is important to me. /usr/share/dict/words
isn't a Scrabble Competition dictionary.
You must have python
version 3.4 or higher to run this script, for Python enumerations.
The package tabulate
is required for pretty printing, but isn't strictly required to run the script. There are three options for setting up the environment for this script.
Create a new virtual environment (using virtualenvwrapper
) by running mkvirtualenv pysc -p /usr/bin/python3
, then running pip install -r requirements.txt
.
Install the only requirement by running pip install tabulate
.
The script will fall back on 'ugly' printing.
Run the script by running ./pysc letters
. letters
may contain blank spaces by using the .
character, but know that this slows down execution. The -r
flag can be used to add required letters to the word. Note that the required letters should not also be included in the letters
argument. Run ./pysc -h
for more details.
Cheating while you're playing Words With Friends isn't fulfilling. I intend this tool to be a lightweight, free replacement for WWF's Hindsight, where you can enter your hand and a letter from where you were trying to play, and see what you might have played. Actually playing words that you couldn't come up with isn't nice. Learning to play better next time is.
- Thanks to ScrabbleHelper, a more complicated Java project, for the SOWPODS and TWL dictionary files.
- Thanks to Blog My Brain for the Words With Friends dictionary.
- Thanks to Justin Peel for his useful analysis of this problem on Stack Overflow.
- Thanks to Jeff Knupp for even more useful work on a similar problem.
- Thanks to James Sweet for his table of Scrabble and Words With Friends letter scores.
- Thanks to Sergey Astanin and the tabulate team for tabulate.