Skip to content

Instantly share code, notes, and snippets.

@ASxa86
Created April 8, 2014 23:29
Show Gist options
  • Save ASxa86/10208535 to your computer and use it in GitHub Desktop.
Save ASxa86/10208535 to your computer and use it in GitHub Desktop.
class Deck
{
val deck : Seq[Card]
for(t <- Type.values)
{
for(s <- Suit.values)
{
deck ++ new Card(t, s)
}
}
def size() : Int = deck.size
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment