Sha256: 26b358f2341a730a3b4b9f0481f7ed1400215337839df50ed437cda5121474c2
Contents?: true
Size: 284 Bytes
Versions: 1
Compression:
Stored size: 284 Bytes
Contents
require File.expand_path('../../hand_evaluator', __FILE__) class PileOfCards < Array # @return [Integer] The strength of the strongest poker hand that can be made from this pile of cards. def to_poker_hand_strength HandEvaluator.rank_hand map { |card| card.to_i } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acpc_poker_types-0.0.2 | lib/acpc_poker_types/pile_of_cards.rb |