pub fn generate_deck() -> Vec<shared_types::Card> {
  let mut deck: Vec<shared_types::Card> = Vec::with_capacity(80);
  // compying same cards atm
  for _ in 0..20 {
    deck.push(shared_types::Card {
      name: shared_types::CardName::Bang,
      suit: shared_types::CardSuit::Clubs,
      rank: shared_types::CardRank::N1,
    });
    deck.push(shared_types::Card {
      name: shared_types::CardName::Bang,
      suit: shared_types::CardSuit::Diamonds,
      rank: shared_types::CardRank::N2,
    });
    deck.push(shared_types::Card {
      name: shared_types::CardName::Missed,
      suit: shared_types::CardSuit::Hearts,
      rank: shared_types::CardRank::N1,
    });
    deck.push(shared_types::Card {
      name: shared_types::CardName::Missed,
      suit: shared_types::CardSuit::Spades,
      rank: shared_types::CardRank::N2,
    });
  }
  game_engine::shuffle_deck(&mut deck);
  return deck;
}
/// Creates a starting deck of Cards for the game

Creates a starting deck of Cards for the game
Creates a starting deck of Cards for the game
pub fn generate_deck() -> Vec<shared_types::Card> {
  let mut deck: Vec<shared_types::Card> = Vec::with_capacity(80);
  // compying same cards atm
  for _ in 0..20 {
    deck.push(shared_types::Card {
      name: shared_types::CardName::Bang,
      suit: shared_types::CardSuit::Clubs,
      rank: shared_types::CardRank::N1,
    });
    deck.push(shared_types::Card {
      name: shared_types::CardName::Bang,
      suit: shared_types::CardSuit::Diamonds,
      rank: shared_types::CardRank::N2,
    });
    deck.push(shared_types::Card {
      name: shared_types::CardName::Missed,
      suit: shared_types::CardSuit::Hearts,
      rank: shared_types::CardRank::N1,
    });
    deck.push(shared_types::Card {
      name: shared_types::CardName::Missed,
      suit: shared_types::CardSuit::Spades,
      rank: shared_types::CardRank::N2,
    });
  }
  game_engine::shuffle_deck(&mut deck);
  return deck;
}
pub fn generate_deck ( ) -> Vec < shared_types :: Card > { let mut deck : Vec < shared_types :: Card > = Vec :: with_capacity ( 80 ) ; // compying same cards atm
 for _ in 0 .. 20 { deck . push ( shared_types :: Card { name : shared_types :: CardName :: Bang , suit : shared_types :: CardSuit :: Clubs , rank : shared_types :: CardRank :: N1 , } ) ; deck . push ( shared_types :: Card { name : shared_types :: CardName :: Bang , suit : shared_types :: CardSuit :: Diamonds , rank : shared_types :: CardRank :: N2 , } ) ; deck . push ( shared_types :: Card { name : shared_types :: CardName :: Missed , suit : shared_types :: CardSuit :: Hearts , rank : shared_types :: CardRank :: N1 , } ) ; deck . push ( shared_types :: Card { name : shared_types :: CardName :: Missed , suit : shared_types :: CardSuit :: Spades , rank : shared_types :: CardRank :: N2 , } ) ; } game_engine :: shuffle_deck ( & mut deck ) ; return deck ; }
Creates a starting deck of Cards for the game
Creates a starting deck of Cards for the game