poker-ranking 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/card.rb +2 -1
- data/lib/poker_ranking.rb +1 -1
- metadata +1 -1
data/lib/card.rb
CHANGED
@@ -13,7 +13,8 @@ module PokerRanking
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def set_value_by_rank_name(rank)
|
16
|
-
|
16
|
+
index = RANKS.index(rank.capitalize) ? RANKS.index(rank.capitalize) : SHORT_RANKS.index(rank.capitalize)
|
17
|
+
@value = index + 2
|
17
18
|
end
|
18
19
|
|
19
20
|
def worth_less_than(other_hand)
|
data/lib/poker_ranking.rb
CHANGED