Welcome to card_deck’s documentation!¶
An object model of a pack of cards, written in Python, to streamline writing programs to model/play games involving cards
Installation¶
The library package has been published on PyPi, so can be found here: https://pypi.org/project/card-deck/, and can be installed as follows:
pip install card-deck
Requirements¶
There are no additional required libraries
Contents¶
- Interface
- Example Usage
- Importing the module
- Creating and dealing from a deck of cards
- Taking user input to create a Card object
- Display the string representation of a card
- Create a pile of cards
- Take the difference of two piles of cards
- Show the equality of two similar piles
- Create a deck, then shuffle it, then re-sort it
- Peek and pop from the head of a pile of cards
- Project Description