Пример #1
0
def river():
    """模拟发5张公牌
    """
    deck = Deck()
    board = deck.deal_hands(5)
    myhand = deck.deal_hands(2)
    return myhand, board, deck
Пример #2
0
def flop():
    """模拟发3张公牌
    """
    deck = Deck()
    board = deck.deal_hands(3)
    myhand = deck.deal_hands(2)
    return myhand, board, deck
Пример #3
0
def turn():
    """模拟发4张公牌
    """
    deck = Deck()
    board = deck.deal_hands(4)
    myhand = deck.deal_hands(2)
    return myhand, board, deck