コード例 #1
0
ファイル: realtime.py プロジェクト: MacHu-GWU/royalflush
def river():
    """模拟发5张公牌
    """
    deck = Deck()
    board = deck.deal_hands(5)
    myhand = deck.deal_hands(2)
    return myhand, board, deck
コード例 #2
0
ファイル: realtime.py プロジェクト: MacHu-GWU/royalflush
def flop():
    """模拟发3张公牌
    """
    deck = Deck()
    board = deck.deal_hands(3)
    myhand = deck.deal_hands(2)
    return myhand, board, deck
コード例 #3
0
ファイル: realtime.py プロジェクト: MacHu-GWU/royalflush
def turn():
    """模拟发4张公牌
    """
    deck = Deck()
    board = deck.deal_hands(4)
    myhand = deck.deal_hands(2)
    return myhand, board, deck