Function twentyone::cards::hit_card[][src]

pub fn hit_card(source: &mut Vec<[char; 2]>, target: &mut Vec<[char; 2]>)

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

Arguments

  • source - The source to draw the card from
  • target - The target to place the card in

Examples

use twentyone::cards;
let mut shoe = cards::create_shoe(6);
let mut hand = Vec::new();
cards::hit_card(&mut shoe, &mut hand);