Provide a set of letters and retrieve a list of potential worsds and point values for Scrabble.
Project description
PyScrabbler
A Python package for retrieving a list of valid words and their values in Scrabble™ given a set of letters [seven to fifteen].
Description
Methods
getScrabbleWords(letters)
Parameter: String; provided letters.
Returns: 2D-List; words and their base values.
Exceptions:
Error: Letter count must be between seven and fifteen.
: occurs when provided String is less than seven characters OR longer than fifteen characters.
Error: No argument provided.
: occurs when not provided with an argument.
Example Use In Code:
storedWords = getScrabbleWords('JUHSINE')
for word in storedWords:
print(word)
Example Use In Terminal:
python -m pyscrabbler a,r,t,w,t,x,y,z
Example Output:
['EH', 5]
['EHS', 6]
['EISH', 7]
['EN', 2]
['ENS', 3]
['ES', 2]
['HE', 5]
['HEN', 6]
['HENS', 7]
...
Installation
With Python installed, run the following in a command prompt:
python -m pip install pyscrabbler
Legal
This project was developed for educational purposes. I do not own, nor claim to own, anything involving Scrabble™. Scrabble™ is a trademark owned by Hasbro Inc. and all rights are reserved to its respective owner.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyscrabbler-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a47d25168438a5968048cbc23a1b80884f8fc90d80a9597d1def12125def27b |
|
MD5 | 12d24edd6f9d6e74f56c20b53ff82198 |
|
BLAKE2b-256 | 64db7abb96367d69c62f6ded11a5b6e7a17900f571541e1420e307d629e0166d |