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

__gt__ , __ge__

parent 7b86c808
No related branches found
No related tags found
No related merge requests found
...@@ -177,14 +177,14 @@ class Card(object): ...@@ -177,14 +177,14 @@ class Card(object):
return True if self is strictly superior to card return True if self is strictly superior to card
False otherwise False otherwise
""" """
... return self.compare(card) > 0
def __ge__(self, card: Card) -> bool: def __ge__(self, card: Card) -> bool:
""" """
return True if self is superior or equal to card return True if self is superior or equal to card
False otherwise False otherwise
""" """
... return self.compare(card) >= 0
if (__name__ == '__main__'): if (__name__ == '__main__'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment