Skip to content

Instantly share code, notes, and snippets.

@keppy
Created May 29, 2012 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keppy/2830540 to your computer and use it in GitHub Desktop.
Save keppy/2830540 to your computer and use it in GitHub Desktop.
poker game initialization
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