diff --git a/054/e054.py b/054/e054.py index 9e0bdce..3b3465b 100644 --- a/054/e054.py +++ b/054/e054.py @@ -83,7 +83,7 @@ class PokerHand: (self._cards[4].value == 2 and self._cards[1].value == 5 and self._cards[0].value == 14): straight = True if straight and flush: - if self._cards[4] == 14: + if self._cards[0].value == 14: self._rank = PokerHand.ROYAL_FLUSH else: self._rank = PokerHand.STRAIGHT_FLUSH