vandepoele.e
2 years ago
1 changed files with 17 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
class Carte: |
|||
def __init__(self, valeur, couleur): |
|||
self.valeur = valeur |
|||
self.couleur = couleur |
|||
|
|||
def compare(self, other): |
|||
if self.valeur > other: |
|||
return 1 |
|||
elif self.valeur < other: |
|||
return -1 |
|||
else: |
|||
return 0 |
|||
|
|||
class Jeux: |
|||
def __init__(self, paquet, nbcartes): |
|||
self.paquet = paquet |
|||
|
Loading…
Reference in new issue