Classes
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 |
# inner draw(size) → {Array}
Draw card from Deck
Parameters:
Name | Type | Description |
---|---|---|
size |
number | Size of hand to draw from Deck |
Hand of cards
Array
# inner removeCard(c)
Remove a Card from the Deck
Parameters:
Name | Type | Description |
---|---|---|
c |
object | Card to remove from deck |
# inner updateCard(c)
Update card based on its internal hash
Parameters:
Name | Type | Description |
---|---|---|
c |
Card | Card to update in deck |