You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
384 B

class Carte:
def __init__(self,valeur, couleur):
self.valeur = valeur
self.couleur = couleur
def compare(self, other):
self.other = other.valeur
if self.valeur > self.other :
return 1
elif self.valeur < self.other :
return -1
elif self.valeur == self.other :
return 0
return None