def list_to_pretty_str(card_ints):
    output = " "
    for i in range(len(card_ints)):
        c = card_ints[i]
        if i != len(card_ints) - 1:
            output += Card.int_to_pretty_str(c) + ","
        else:
            output += Card.int_to_pretty_str(c) + " "
    return output
Beispiel #2
0
    def board_to_string(board):
        result = ""
        for card in board:
            result += "{} ".format(Card.int_to_pretty_str(card))

        return result
Beispiel #3
0
    def board_to_string(board):
        result = ""
        for card in board:
            result += "{} ".format(Card.int_to_pretty_str(card))

        return result
Beispiel #4
0
 def card_str(self):
     return '{}, {}'.format(Card.int_to_pretty_str(self.cards[0]), Card.int_to_pretty_str(self.cards[1]))
Beispiel #5
0
 def card_str(self):
     return '{}, {}'.format(Card.int_to_pretty_str(self.cards[0]),
                            Card.int_to_pretty_str(self.cards[1]))
Beispiel #6
0
 def getHumanHand(self):
     '''borkd'''
     return ' '.join([dCard.int_to_pretty_str(x) for x in self.getHand()])