Skip to main content

Deck

Type Alias Deck 

Source
pub type Deck = Pile<DeckType>;
Expand description

The deck contains all cards at the start of the game and is drawn from during dealing and for the starter cut.

Aliased Type§

pub struct Deck { /* private fields */ }

Implementations§

Source§

impl Deck

Source

pub fn shuffled_pack() -> Self

Source

pub fn cut(&mut self) -> Card

Source

pub fn deal(&mut self, count: usize) -> Vec<Hand>