source/common/Liverpool.py
def cardValue(card):
    """Returns the point value for a card"""
    if card.number in [2, 3, 4, 5, 6, 7, 8, 9]:
        return 5
    if card.number in [10, 11, 12, 13]:
        return 10
    if card.number == 1:
        return 15
    if card.number == 0:
        return 20
    raise ValueError("Card submitted is not a legal playing card option")
Returns the point value for a card
Returns the point value for a card
Returns the point value for a card
def cardValue(card):
    if card.number in [2, 3, 4, 5, 6, 7, 8, 9]:
        return 5
    if card.number in [10, 11, 12, 13]:
        return 10
    if card.number == 1:
        return 15
    if card.number == 0:
        return 20
    raise ValueError("Card submitted is not a legal playing card option")
def cardValue ( card ) : if card . number in [ 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ] : return 5 if card . number in [ 10 , 11 , 12 , 13 ] : return 10 if card . number == 1 : return 15 if card . number == 0 : return 20 raise ValueError ( "Card submitted is not a legal playing card option" )
Returns the point value for a card
Returns the point value for a card
"""Returns the point value for a card"""
card