A Ruby port of the Cactus Kev's Poker Hand Evaluator using Paul Senzee's perfect hash technique.
http://www.suffecool.net/poker/evaluator.html
http://www.paulsenzee.com/2006/06/some-perfect-hash.html
This was derived from the XPokerEval compilation put together by James Devlin
http://www.codingthewheel.com/archives/poker-hand-evaluator-roundup#xpokereval
Add this line to your application's Gemfile:
gem 'cactus_kev'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cactus_kev
See specs
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request