apply the bug fix for useless card check
This commit is contained in:
parent
dae6c6f476
commit
bbe6ac9dd0
|
@ -33,7 +33,7 @@ class Card:
|
||||||
return str((self.color,self.rank))
|
return str((self.color,self.rank))
|
||||||
|
|
||||||
def is_useless(self, board):
|
def is_useless(self, board):
|
||||||
return board[self.color].rank + 1 > self.rank
|
return board[self.color].rank + 1 >= self.rank
|
||||||
|
|
||||||
def is_playable(self, board):
|
def is_playable(self, board):
|
||||||
return board[self.color].rank + 1 == self.rank
|
return board[self.color].rank + 1 == self.rank
|
||||||
|
|
Loading…
Reference in New Issue