Beispiel #1
0
    def deal_pack(self, number_of_packs):
        hands = []
        number_of_packs_completed = 0
        while number_of_packs_completed < number_of_packs:
            pack = PackOfCards()
            start_index = 0
            end_index = 5
            while end_index < 50:
                hands.append(" ".join(pack[start_index:end_index]))
                start_index = start_index + 5
                end_index = end_index + 5
            # burn the last two cards to make round number

            number_of_packs_completed = number_of_packs_completed + 1
        return hands