Skip to main content

A miniscule library for generating and identifying dice combos in craps

Project description

Craps Nicknames

Craps Nicknames is a tiny Python package that returns a randomized dice roll with it's associated craps nickname. The nicknames are based on the following chart by Vital Vegas:

Craps Nicknames Charts

Installation

Use the package manager pip to install craps-pkg.

pip install craps-dice-combos-names

Usage

import craps_pkg

craps_pkg.craps_roll()
# returns {
# "dice_pair": [1,2],
# "nickname": "Australian yo"
# }

craps_pkg.get_combo_name([2,2]) # returns "Ballerina"

craps_pkg.get_dice_combos()
# returns {
#   'Snake Eyes': [1, 1],
#   'Australian yo': [1, 2],
#   ...
#   'Six five no jive': [6, 5],
#   'Midnight': [6, 6]
# }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

craps-dice-combos-names-0.1.127.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file craps-dice-combos-names-0.1.127.2.tar.gz.

File metadata

  • Download URL: craps-dice-combos-names-0.1.127.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.4

File hashes

Hashes for craps-dice-combos-names-0.1.127.2.tar.gz
Algorithm Hash digest
SHA256 f5739df3c059393610493a0c5a9c839c2c92df3b992066f556223c0a170ac002
MD5 0ee4c09073c376fef544ebf4e6c25e72
BLAKE2b-256 e1785b842f201e27f7f70834062465dc1055969ca6791d0e60c49b5f9b86ed79

See more details on using hashes here.

File details

Details for the file craps_dice_combos_names-0.1.127.2-py3-none-any.whl.

File metadata

  • Download URL: craps_dice_combos_names-0.1.127.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.4

File hashes

Hashes for craps_dice_combos_names-0.1.127.2-py3-none-any.whl
Algorithm Hash digest
SHA256 007b312ff437ab94bfde3776c1ce5e832120892f33b363ba8f920775ce507770
MD5 8e2624f9c2ae590f5c4c783baf274611
BLAKE2b-256 b69d51e9f9e588f01b777a2c0733f83f2154e8b3bc9ccbb6d2aab795a1a217a7

See more details on using hashes here.

Supported by

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