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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyscrabbler-1.0.3.tar.gz
  • Upload date:
  • Size: 736.4 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.3.tar.gz
Algorithm Hash digest
SHA256 03a63a61a86a1a7314704c3b68d243847149ccf966a84eb98770cf0276688e15
MD5 c4b50207c912940ab77ff20093acd8ac
BLAKE2b-256 a2787e8f609d1a06658b35706c2c4b6147db036e3ebaa6c7f11e556ea8cb7b5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyscrabbler-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f86bc7d9ad916b16a2f4d27a0131716680969e1e446c9d7df290a5a79f8c07e
MD5 a55cb4183099e980d003552b4f015421
BLAKE2b-256 ab1fe96cfb5639553f4f62d9d1b8aca354921e357994299a0635667bd93eef90

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