Created
May 29, 2012 20:34
-
-
Save keppy/2830540 to your computer and use it in GitHub Desktop.
poker game initialization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def initialize(numhands, n = 5, deck = [r+s for r in '23456789TJQKA' for s in 'SHDC']) | |
deck.shuffle | |
i = 0 | |
numhands.times do (n*i).upto(n*(i+1)) {|x|... } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment