Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ap Almohamedalsadou Fatima
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fatima Almohamed Alsadou
Ap Almohamedalsadou Fatima
Commits
965b5acc
Commit
965b5acc
authored
1 year ago
by
Almohamed Alsadou Fatima
Browse files
Options
Downloads
Patches
Plain Diff
class card
parent
a3ae3029
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bataille des cartes/bataille-carte/card.py
+6
-7
6 additions, 7 deletions
bataille des cartes/bataille-carte/card.py
with
6 additions
and
7 deletions
bataille des cartes/bataille-carte/card.py
+
6
−
7
View file @
965b5acc
...
...
@@ -145,42 +145,41 @@ class Card(object):
return True if self equals card
False otherwise
"""
...
return
self
.
value
==
car
.
value
def
__neq__
(
self
,
card
:
Card
)
->
bool
:
"""
return True if self don
'
t equal card
False otherwise
"""
...
return
not
self
.
value
==
car
.
value
def
__lt__
(
self
,
card
:
Card
)
->
bool
:
"""
return True if self is strictly inferior to card
False otherwise
"""
...
return
self
.
value
<
car
.
value
def
__le__
(
self
,
card
:
Card
)
->
bool
:
"""
return True if self is inferior or equal to card
False otherwise
"""
...
return
self
.
value
<=
card
.
value
def
__gt__
(
self
,
card
:
Card
)
->
bool
:
"""
return True if self is strictly superior to card
False otherwise
"""
...
return
self
.
value
>
card
.
value
def
__ge__
(
self
,
card
:
Card
)
->
bool
:
"""
return True if self is superior or equal to card
False otherwise
"""
...
return
self
.
value
>=
card
.
value
if
(
__name__
==
'
__main__
'
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment