mirror of
https://github.com/correl/euler.git
synced 2024-11-27 19:19:50 +00:00
Removed pointless 5 card limitation from the static factory method
git-svn-id: file:///srv/svn/euler@15 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
parent
e2d55968e3
commit
71973e170f
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue