Skip to content

Instantly share code, notes, and snippets.

@toddseller
Last active January 5, 2016 20:33
Show Gist options
  • Save toddseller/778482af9e809d164351 to your computer and use it in GitHub Desktop.
Save toddseller/778482af9e809d164351 to your computer and use it in GitHub Desktop.
Ruby Example 1
values = 2 .. 14
suits = ['C', 'D', 'H', 'S']
cards = []
suits.each { |j| values.each { |value| cards.push("#{value}_#{j}") } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment