shenzhen-solitaire.py
def goes_on(self, other):
        """Calculate whether this card can goes on top of another."""
        if self.ctype != NUMBER or other.ctype != NUMBER:
            return False

        return self.color != other.color and self.number + 1 == other.number
Calculate whether this card can goes on top of another.
Calculate whether this card can goes on top of another.
Calculate whether this card can goes on top of another .
def goes_on(self, other):
        if self.ctype != NUMBER or other.ctype != NUMBER:
            return False
        return self.color != other.color and self.number + 1 == other.number
def goes_on ( self , other ) : if self . ctype != NUMBER or other . ctype != NUMBER : return False return self . color != other . color and self . number + 1 == other . number
Calculate whether this card can goes on top of another.
Calculate whether this card can goes on top of another .
"""Calculate whether this card can goes on top of another."""
self
other