Skip to main content

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


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.2.tar.gz (617.6 kB view details)

Uploaded Source

Built Distribution

pyscrabbler-1.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyscrabbler-1.0.2.tar.gz
  • Upload date:
  • Size: 617.6 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.2.tar.gz
Algorithm Hash digest
SHA256 a647f198ac26e0bc07308b9bd31129956c8f51ba1e6cb28f0ef692e870cf3c7d
MD5 104573301e5c5487b540549c8bb09043
BLAKE2b-256 304329beeb15f132c45e06e8767b12565358d37fd1f3068d27123c69a4a27866

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyscrabbler-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 423c0370655e6ae2899a6af5621d45d73cecf862452986e0c9e1082600adab7a
MD5 72e3c9051cdbd8ada8ebdea0c4394409
BLAKE2b-256 a45d70c94e37cb0964b29089aaff0c92599ae88c3c157e46268a667bd89cb76e

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