Yesterday ruby-poker 0.2.0 was released. Here is a synopsis of what has changed.
Hands are no longer limited to 5 cards!
In order to play any poker game other than 5-card draw (like Texas Holdem) you need to evaluate hands containing more or less than 5 cards. Now you can with ruby-poker.
holdem_hand = PokerHand.new("Qc Qd Qs 5d 5h 8c 2h") # Any number of cards you want
Specifying face cards using numbers is no longer supported
Previous to 0.2.0 face cards could be specified using their number value like so:
PokerHand.new("10c 11c 12c 13c 14c") # old way
This no longer works and face cards must be created using their letters:
PokerHand.new("Tc Jc Qc Kc Ac") # new way
to_s on PokerHand objects includes rank
hand1 = PokerHand.new("Tc Jc Qc Kc Ac") puts hand1 #=> Tc Jc Qc Kc Ac (Royal Flush)
Straights with a low Ace work now
Previously straights like A-2-3-4-5 were not counted as being a straight by the old hand evaluator. This has been remedied in 0.2.0.
If you have a previous version of the ruby-poker gem installed update with
sudo gem update. Installing ruby-poker can still be done with
sudo gem install ruby-poker.