Пример #1
0
def _get_random_hands_with_opposing_card(num_cards_per_hand, num_hands):
    """
        gets a list of [num_hands] random hand with 
        [num_cards_per_hand] cards coupled with [num_hands] cards
        """
    deck = get_new_shuffled_deck()
    hands = []
    cards = []
    for _ in range(num_hands):
        c = random.sample(deck, num_cards_per_hand)
        hands.append(hand.Hand(c))
        cards.append(random.choice(deck + [None]))
    return hands, cards
Пример #2
0
 def setup_method(self):
     self.hand = hand.Hand(cards)
     self.hand_adj_trip = hand.Hand(adj_trip)
     self.hand_quadplex = hand.Hand(quadplex)