From 71973e170fe2bc26bfd469c8383162a036992484 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 1 Apr 2010 04:44:32 +0000 Subject: [PATCH] Removed pointless 5 card limitation from the static factory method git-svn-id: file:///srv/svn/euler@15 e5f4c3ec-3c0c-11df-b522-21efaa4426b5 --- 054/poker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/054/poker.py b/054/poker.py index f99354f..fb77d0e 100644 --- a/054/poker.py +++ b/054/poker.py @@ -181,10 +181,8 @@ class Hand: Uses smart hand creation if more than five cards are specified. """ - if len(cards) == 5: + if len(cards) <= 5: return Hand(cards) - elif len(cards) < 5: - raise InvalidHand else: return Hand.create_best_hand_smart(cards) return false