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 pyscrabbler.py 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

Coming soon!

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyscrabbler-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 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.0.tar.gz
Algorithm Hash digest
SHA256 af571b386486ecc1feefc94265046bf4882cee200024d016860e4b5ac219b794
MD5 154396d486261a673349c3010c06685a
BLAKE2b-256 d51573331ba935466affb1e1ef3c934ed28170d575beaa030c28a6c803a9909d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyscrabbler-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 192fc832c5c5a5941e481c126815a97cd7af51e00101afb45523278aea69f578
MD5 2511e6ae46665c7652b6e37b4f883423
BLAKE2b-256 3cbc978eeb20c8a3088a55641d28ca2741e78627cecae337fc702179de0f806e

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