reddavis / poker

http://acm.uva.es/p/v103/10315.html — Read more

This URL has Read+Write access

poker /
README.textile

Poker Hands

This is a problem that we tried to solve at Coding Dojo London:http://groups.google.com.br/group/coding-dojo-london

The problem:http://acm.uva.es/p/v103/10315.html

Install

  
    gem sources -a http://gems.github.com
    
    sudo gem install reddavis-poker
  

To Use

  
    require 'rubygems'
    require 'reddavis-poker'
    
    a = Poker.new('3D 4D 5D 6D 7D 4D 4C 4S KS AH')
    
    a.who_wins?
      #=> Black wins
  

Copyright

Copyright © 2009 Red Davis. See LICENSE for details.