apply the bug fix for useless card check

This commit is contained in:
JH159753 2022-11-19 01:50:38 -08:00
parent dae6c6f476
commit bbe6ac9dd0
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Card:
return str((self.color,self.rank))
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):
return board[self.color].rank + 1 == self.rank