Card: Card constructor function

Description Usage Arguments

Description

Card constructor function

Usage

1
Card(suit, number, trump = FALSE)

Arguments

suit

suit of card. Must be one of "spades", "clubs", "diamonds", or "hearts"

number

value of card. Must be an integer between 2 and 14, but can be numeric type. 11 through 14 represent Jack through Ace, respectively.

trump

set to TRUE if the card is a trump card. default FALSE.


alyssafrazee/cards documentation built on May 12, 2019, 1:41 a.m.