Module twentyone::cards[][src]

Card-related functions, such as deck creation and shuffling

Functions

create_deck

Returns a 52-card deck in order

create_shoe

Returns a shoe with a specified amount of decks in it

draw_card

Returns the first card from a deck or shoe, then removes it

hit_card

Hit an amount of cards from a source to a target (eg. a shoe to a hand)

shuffle_deck

Shuffles a deck or shoe into a random order