Skip to content

Instantly share code, notes, and snippets.

@MladenMladenov
Created July 25, 2015 07:21
Show Gist options
  • Save MladenMladenov/1f6db4f4ad523faddb1a to your computer and use it in GitHub Desktop.
Save MladenMladenov/1f6db4f4ad523faddb1a to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
class PrintADeck
{
static void Main()
{
string[] cards = { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "D", "K", "A" };
string[] sign = { "\u2663", "\u2666", "\u2665", "\u2660" };
for (int i = 0; i < cards.Length; i++)
{
for (int j = 0; j < sign.Length; j++)
{
Console.Write(cards[i].PadLeft(2, ' ') + sign[j].PadRight(1, ' ') + " ");
}
Console.WriteLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment