Skip to content
Snippets Groups Projects
Commit 408ad0bf authored by Almohamed Alsadou Fatima's avatar Almohamed Alsadou Fatima
Browse files

classe card

parent 965b5acc
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ class Card(object):
$$$ repr(Card('Ace', 'heart'))
'Card("Ace", "heart")'
"""
return f"Card({self.value},{self.color})"
return f'Card("{self.value}", "{self.color}")'
def __str__(self)->str:
......@@ -145,7 +145,7 @@ class Card(object):
return True if self equals card
False otherwise
"""
return self.value==car.value
return self.value==card.value
def __neq__(self, card: Card) -> bool:
"""
......@@ -158,7 +158,7 @@ class Card(object):
return True if self is strictly inferior to card
False otherwise
"""
return self.value<car.value
return self.value<card.value
def __le__(self, card: Card) -> bool:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment