Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def calcStartCards(hand, player):
    hcs = hand.join_holecards(player, asList=True)
    if hand.gametype['category'] == 'holdem':
        value1 = card_map[hcs[0][0]]
        value2 = card_map[hcs[1][0]]
        return twoStartCards(value1, hcs[0][1], value2, hcs[1][1])
    elif hand.gametype['category'] == 'razz':
        return encodeRazzStartHand(hcs)
    else:
        # FIXME: Only do startCards value for holdem at the moment
        return 0
        


src/f/p/fpdb-HEAD/pyfpdb/DerivedStats.py   fpdb(Download)
            for i, card in enumerate(hcs[:20]):
                self.handsplayers[player[1]]['card%s' % (i+1)] = Card.encodeCard(card)
            self.handsplayers[player[1]]['startCards'] = Card.calcStartCards(hand, player[1])
 
        self.setPositions(hand)

src/f/p/fpdb-grindi-HEAD/pyfpdb/DerivedStats.py   fpdb-grindi(Download)
            for i, card in enumerate(hcs[:7]):
                self.handsplayers[player[1]]['card%s' % (i+1)] = Card.encodeCard(card)
            self.handsplayers[player[1]]['startCards'] = Card.calcStartCards(hand, player[1])
 
        self.setPositions(hand)

src/f/p/fpdb-sql-HEAD/pyfpdb/DerivedStats.py   fpdb-sql(Download)
            for i, card in enumerate(hcs[:7]):
                self.handsplayers[player[1]]['card%s' % (i+1)] = Card.encodeCard(card)
            self.handsplayers[player[1]]['startCards'] = Card.calcStartCards(hand, player[1])
 
        self.setPositions(hand)