Welcome to deck_of_cards’s documentation!¶

A module to create a deck of cards object

Installation:

pip install deck-of-cards

Requirements:

pytest is required to run the tests; pytest-cov is recommended instead.

Contents:

  • Example usage
    • import the module
    • create an instance of DeckOfCards
    • add jokers
    • sort the deck by card value
    • give out a random card
    • card objects have the following attributes
    • insert a new card into the deck
    • shuffle the deck
    • add a second deck of cards to the first one
  • Classes: Attributes and Methods
    • class deck_of_cards.Card(suit_rank_tup)
    • class deck_of_cards.DeckOfCards()
  • Project Description
    • Objective
    • PyPI
    • Source Code
    • Creator: Simon Lachaine
  • Auto Documentation

Indices and tables¶

  • Index
  • Module Index
  • Search Page

deck_of_cards

Navigation

Contents:

  • Example usage
  • Classes: Attributes and Methods
  • Project Description
  • Auto Documentation

Related Topics

  • Documentation overview
    • Next: Example usage

Quick search

©2018, Simon Lachaine. | Powered by Sphinx 1.8.5 & Alabaster 0.7.12 | Page source