From bbe6ac9dd06d08f73ca0fde53e0c6870eb8ffe0b Mon Sep 17 00:00:00 2001 From: JH159753 Date: Sat, 19 Nov 2022 01:50:38 -0800 Subject: [PATCH] apply the bug fix for useless card check --- hanabi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hanabi.py b/hanabi.py index 2a7ded0..3512d28 100644 --- a/hanabi.py +++ b/hanabi.py @@ -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