def abs(x)
Category: Common client and server functions
File: common.include
Return absolute value of x.
def age(set)
Category: Common client and server functions
File: common.include
Workaround for binaries not having age().
def book_set_slot(set)
Category: Common client and server functions
File: common.include
Workaround for binaries not having booksetslot().
def CountCards(list of card numbers)
Category: Common client and server functions
File: common.include
Return list of pairs (card number,nmb.of card).
def DataPath(section)
Category: Common client and server functions
File: common.include
Return directory containing Gccg data for section.
def del(e, L)
Category: Common client and server functions
File: common.include
Remove one instance of element e from the list L and return remaining list.
def dist((x1, y1), (x2, y2))
Category: Common client and server functions
File: common.include
Compute the square of the distance between (x1,y1) and (x2,y2).
def GeneratePassword()
Category: Common client and server functions
File: common.include
Return randomly generated string.
def isreal(d)
Category: Common client and server functions
File: common.include
Return 1 if string d represents a real number.
def LegalityCheckDeck(deck)
Category: Common client and server functions
File: common.include
Return the list of rulesets to which deck mathces.
def LegalityCheckRule((rule name, parameters), deck part, list of cards)
Category: Common client and server functions
File: common.include
Evaluate one rule for the given deck part.