Skip to main content

Yatzy game framework

Project description

Yatzy

Python framework for playing Yatzy (Yahtzee).

Types

Roll

init(die1, die2, die3, die4, die5)

Initialize Roll with five specific die values. Must include all five dice. Arguments must be int values 1-6.

classmethod: roll()

Create a Roll object with random die values.

hold(die...)

Re-roll with indicated die held from previous roll. Returns new Roll. Does not mutate previous Roll object.

Scorecard

Object for scoring rolls.

TODO

  • Add str/repr methods to Scorecard.
  • Add Scorecard methods for accessing individual score slots.
  • Retrieve available scoring slots.
  • Fill out Scorcard API documentation.

Project details


Download files

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

Files for yatzy, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size yatzy-0.2.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page