deal_phase: Deal a Phase of Cards

View source: R/napjack_helpers.R

deal_phaseR Documentation

Deal a Phase of Cards

Description

This function deals a phase of cards from a given deck, consisting of 6 cards. It returns a list containing the dealt cards as a matrix, the updated deck, and the individual dealt cards.

Usage

deal_phase(.deck)

Arguments

.deck

A deck of cards created using the mmcards package.

Value

A list with the following components:

cards_matrix

A matrix of the dealt cards, with 1 row and 6 columns.

updeck

The updated deck after dealing the cards.

dealt_cards

A list of the individual dealt cards.


scdtb documentation built on Sept. 30, 2024, 9:35 a.m.