質問編集履歴
1
修正依頼対応のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,20 +24,20 @@
|
|
24
24
|
self.suit = s
|
25
25
|
|
26
26
|
def __lt__(self, **c2**):
|
27
|
-
if self.value <
|
27
|
+
if self.value < c2.value:
|
28
28
|
return True
|
29
|
-
if self.value ==
|
29
|
+
if self.value == c2.value:
|
30
|
-
if self.suit <
|
30
|
+
if self.suit < c2.suit:
|
31
31
|
return True
|
32
32
|
else:
|
33
33
|
return False
|
34
34
|
return False
|
35
35
|
|
36
|
-
def __gt__(self,
|
36
|
+
def __gt__(self, c2):
|
37
|
-
if self.value >
|
37
|
+
if self.value > c2.value:
|
38
38
|
return True
|
39
|
-
if self.value ==
|
39
|
+
if self.value == c2.value:
|
40
|
-
if self.suit >
|
40
|
+
if self.suit > c2.suit:
|
41
41
|
return True
|
42
42
|
else:
|
43
43
|
return False
|