user object

Method __init__ set nick and give the user the initial cards
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.
Method __str__ returns the nick
Method __unicode__ returns the nick
Method __eq__ 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 getCards(self, cards): (source)

add cards to the user cards

Parameterscardsa dict with cardtype->num_cards (type: dict)
def giveCards(self, cards): (source)

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

Parameterscardsa dict with cardtype->num_cards (type: dict)
def __str__(self): (source)

returns the nick

def __unicode__(self): (source)

returns the nick

def __eq__(self, other): (source)

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

API Documentation for OtfBot, generated by pydoctor at 2020-03-04 02:00:06.