Skip to main content

Provide a set of letters and retrieve a list of potential words 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyscrabbler-1.0.6.tar.gz (736.5 kB view details)

Uploaded Source

Built Distribution

pyscrabbler-1.0.6-py3-none-any.whl (735.2 kB view details)

Uploaded Python 3

File details

Details for the file pyscrabbler-1.0.6.tar.gz.

File metadata

  • Download URL: pyscrabbler-1.0.6.tar.gz
  • Upload date:
  • Size: 736.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyscrabbler-1.0.6.tar.gz
Algorithm Hash digest
SHA256 5c00650b0755915bd8bc956febd1b1ecc9ccd4750a7965870f0a2ff022506092
MD5 5597d543310da88a0539816acc2b1dad
BLAKE2b-256 b74048b01c92e7c1bf6349b8561fdbb09e6f24a095d3e8ab1eb071d9d61d1665

See more details on using hashes here.

File details

Details for the file pyscrabbler-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: pyscrabbler-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 735.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyscrabbler-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 877a8bcf7fe39ac3a02f5ec3d3df647d1ad1a47020a4e83b8b82d949d0ed266a
MD5 70cad3bff592b0262dec7497dd522e6b
BLAKE2b-256 f13143227bbca42c8c4571e80624bd201778be366b2841c3b6bc76c4349f9d33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page