class documentation

user object

Method __eq__ makes the user comparable with a string, equal if nick matches the string
Method __init__ set nick and give the user the initial cards
Method __str__ returns the nick
Method __unicode__ returns the nick
Method getCards add cards to the user cards
Method giveCards substract the cards from the user cards, if the user has them. throws an exception else.
Instance Variable cards Undocumented
Instance Variable nick Undocumented
def __eq__(self, other): (source)

makes the user comparable with a string, equal if nick matches the string

def __init__(self, nick): (source)

set nick and give the user the initial cards

def __str__(self): (source)

returns the nick

def __unicode__(self): (source)

returns the nick

def getCards(self, cards): (source)

add cards to the user cards

Parameters
cards:dicta dict with cardtype->num_cards
def giveCards(self, cards): (source)

substract the cards from the user cards, if the user has them. throws an exception else.

Parameters
cards:dicta dict with cardtype->num_cards
cards: dict[str, int] = (source)

Undocumented

Undocumented