Skip to content
Snippets Groups Projects
Commit 148ecb2d authored by Belfadel Mohamed's avatar Belfadel Mohamed
Browse files

eq_neq_lt

parent 90c39fdf
No related branches found
No related tags found
No related merge requests found
......@@ -156,14 +156,14 @@ class Card(object):
return True if self don't equal card
False otherwise
"""
...
return (self.value != card.value) or (self.color != card.color)
def __lt__(self, card: Card) -> bool:
"""
return True if self is strictly inferior to card
False otherwise
"""
...
return self.compare(card) < 0
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