Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.autotest
.document
.gitignore
LICENSE
README.textile
Rakefile
VERSION.yml
poker.gemspec

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.