new_cards: Draw cards from a given deck.

Description Usage Arguments Value

View source: R/basic_functions_classes.R

Description

Draw cards from a given deck.

Usage

1
new_cards(n, deck)

Arguments

n

The number of cards to be drawn from the deck

deck

An object of the S4 class "deck" which may have had cards drawn from it previously.

Value

A list of n+1 elements with the generated cards, as well as the deck contained in the last element.


dfcorbin/pokersim documentation built on Nov. 13, 2019, 4:21 p.m.