Class: PileOfCards
- Inherits:
-
Array
- Object
- Array
- PileOfCards
- Defined in:
- lib/acpc_poker_types/pile_of_cards.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#to_poker_hand_strength ⇒ Integer
The strength of the strongest poker hand that can be made from this pile of cards.
Instance Method Details
#to_poker_hand_strength ⇒ Integer
Returns The strength of the strongest poker hand that can be made from this pile of cards.
6 7 8 |
# File 'lib/acpc_poker_types/pile_of_cards.rb', line 6 def to_poker_hand_strength HandEvaluator.rank_hand map { |card| card.to_i } end |