Skip to content

Instantly share code, notes, and snippets.

@ssartell

ssartell/25.cs Secret

Last active June 28, 2019 14:56
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 ssartell/9232a2d9dd1f0e9f22e870f6145eeef8 to your computer and use it in GitHub Desktop.
Save ssartell/9232a2d9dd1f0e9f22e870f6145eeef8 to your computer and use it in GitHub Desktop.
/* LINQ Puzzle #5 *******************************************************
Description: Build a full deck of cards given the suits and faces.
Sample Output: {
"Ace of Hearts",
"2 of Hearts",
...
"Queen of Spades",
"King of Spades"
}
************************************************************************/
var suits = "Hearts,Diamonds,Clubs,Spades".Split(',');
var faces = "Ace,2,3,4,5,6,7,8,9,10,Jack,Queen,King".Split(',');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment