Module

Deck

Classes

Deck

Methods

# inner addCard(content, qualities)

Add a Card to the Deck
Parameters:
Name Type Description
content string Text of card
qualities Array Array of Expressions

View Source Deck.js, line 91

# inner draw(size) → {Array}

Draw card from Deck
Parameters:
Name Type Description
size number Size of hand to draw from Deck

View Source Deck.js, line 142

Hand of cards
Array

# inner removeCard(c)

Remove a Card from the Deck
Parameters:
Name Type Description
c object Card to remove from deck

View Source Deck.js, line 116

# inner shuffle()

Shuffle cards in Deck

View Source Deck.js, line 128

# inner size() → {number}

Size of Deck

View Source Deck.js, line 81

Returns number of cards
number

# inner updateCard(c)

Update card based on its internal hash
Parameters:
Name Type Description
c Card Card to update in deck

View Source Deck.js, line 63