A typical european and american deck is called a french deck and contains 52 cards.

These cards are spread over 13 ranks of 4 different suites, these suites are split into 2 colors.
These properties can be found on the FrenchDeckCard class.

public enum Rank : byte 
{
  Ace = 1,
  Two = 2,
   ...
  Jack = 11,
  Queen = 12,
  King = 13,
}

public enum Suite :  byte
{
     Hearts = 1,
     Spades = 2,
     Diamond = 3,
     Clubs = 4,
}

Last edited Dec 14, 2010 at 12:12 AM by sebdg, version 10

Comments

No comments yet.