Advertisement
timeshifter

deck building

Oct 22nd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1.         public static string[] CardValue = new string[] { "Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King" };
  2.         public static string[] CardTypes = new string[] { "Hearts", "Diamonds", "Clubs", "Spades" };
  3.  
  4.         public static List<Card> BaseDeck = new List<Card>();
  5.  
  6.  
  7.  
  8.         static void Main(string[] args) {
  9.                 for (int i = 0; i < 4; i++) {
  10.                     for (int j = 0; j < 13; j++) {
  11.                         BaseDeck.Add(new Card() { Type = i, Value = j });
  12.                     }
  13.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement