"""Suit + values are ints"""
from random import shuffle

class Card:
    suits = ("spades", "hearts", "diamonds", "clubs")
    values = (None, None, '2', '3',
              '4', '5', '6', '7',
              '8', '9', '10',
              'Jack','Queen',
              'King', 'Ace')

    def __init__(self, v, s):
        self.suite = s
        self.value = v

    def __lt__(self,c2):
        if self.value < c2.value:
            return True
        if self.value == c2.value:
            if self.suite < c2.suite:
            else:
                return False
        return False

    def __gt__(self,c2):
        if self.value > c2.value:
            return True
        if self.value == c2.value:
            if self.suite > c2.suite:
                return True
            else:
                return False
        return False

    def __repr__(self):
        v = self.values[self.value] +\
            " of " + \
            self.suits[self.suite]
        return v


class Deck():
    def __init__(self):
        self.cards = []
        for i in range(2,15):
            for j in range(0,4):
                self.cards\
                .append(Card(i,
                             j))
        shuffle(self.cards)

    def rm_card(self):
        if len(self.cards) == 0:
            return
        return self.cards.pop()
                return True