https://github.com/wojtekmach/poker
Ruby poker library for evaluating hands
https://github.com/wojtekmach/poker
Last synced: 7 months ago
JSON representation
Ruby poker library for evaluating hands
- Host: GitHub
- URL: https://github.com/wojtekmach/poker
- Owner: wojtekmach
- License: other
- Created: 2010-05-14T09:19:11.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-03-07T21:57:16.000Z (over 11 years ago)
- Last Synced: 2025-03-06T17:53:49.452Z (8 months ago)
- Language: C
- Homepage:
- Size: 313 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Poker
Ruby library for evaluating poker hands (with Cactus Kev's evaluator)
[][gem]
[][travis]
[][gemnasium]
[][codeclimate]
[][coveralls][gem]: https://rubygems.org/gems/poker
[travis]: https://travis-ci.org/wojtekmach/poker
[gemnasium]: https://gemnasium.com/wojtekmach/poker
[codeclimate]: https://codeclimate.com/github/wojtekmach/poker
[coveralls]: https://coveralls.io/r/wojtekmach/poker## Examples
```ruby
hand1 = Poker::Hand.new('As Ks Qs Js Ts')
hand2 = Poker::Hand.new('Ac Ad Ah As Kc')hand1.rank # => "Royal Flush"
hand2.rank # => "Four of a Kind"
hand1 > hand2 # => true
```See
## License
Ruby code of this project is released under MIT license (see LICENSE.txt). Hand evaluator is written by Kevin L. Suffecool (http://www.suffecool.net/poker/evaluator.html)