pub fn new_standard_deck(ranks: u8, suits: u8) -> Vec<Card>
Expand description

Creates a standard deck of playing cards.

§Arguments

  • ranks - The number of ranks per suit in the deck.
  • suits - The number of suits in the deck.

§Returns

A vector containing a standard deck of cards with ranks ranging from 1 to ranks and suits ranging from 1 to suits.