def is_straight(cards):
    previous = rank_int(cards[0]) - 1
    for card in cards:
        r = rank_int(card)
        if r != previous + 1:
            if not (r == 12 and previous == 3):
                return False
        previous = r
    return True
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/Features/PlayingCards/cards.py/is_straight/original