Module: TexasHoldem::Combinations

Defined in:
lib/texas-holdem/combinations/pair.rb,
lib/texas-holdem/combinations/flush.rb,
lib/texas-holdem/combinations/ranks.rb,
lib/texas-holdem/combinations/straight.rb,
lib/texas-holdem/combinations/two_pairs.rb,
lib/texas-holdem/combinations/combination.rb,
lib/texas-holdem/combinations/highest_card.rb,
lib/texas-holdem/combinations/three_of_a_kind.rb

Defined Under Namespace

Classes: Combination, Flush, HighestCard, Pair, Straight, ThreeOfAKind, TwoPairs

Constant Summary collapse

RANKS =

Order matters. Highest combinations should go first

{
    Flush => 6,
    Straight => 5,
    ThreeOfAKind => 4,
    TwoPairs => 3,
    Pair => 2,
    HighestCard => 1
}