bufflib.DeckDP.CardDP

class bufflib.DeckDP.CardDP

A card deck for Question 1

This module consists of a class of cards, from which we can draw individual cards

The functions in this module are:
  • drawCard

__init__()

Set up the deck

Parameters:

None

Returns:

None

Methods

__init__()

Set up the deck

drawCard()

Draw a card from the deck

drawCard()

Draw a card from the deck

Parameters:

None

Returns:

A list consisting of the suit and the number of the drawn card

Return type:

list