Sha256: f2b7ec503fb33b8115e38cad3084bfdea91a4e925e14bf7c28598e558ea878a3
Contents?: true
Size: 266 Bytes
Versions: 2
Compression:
Stored size: 266 Bytes
Contents
require 'hand_evaluator' class AcpcPokerTypes::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acpc_poker_types-2.0.0 | lib/acpc_poker_types/pile_of_cards.rb |
acpc_poker_types-1.0.0 | lib/acpc_poker_types/pile_of_cards.rb |