public override string ToString()
{
string type = "";
char color = '\n';
switch( this.CardType )
{
case CardType.Ace:
type = "A";
break;
case CardType.King:
type = "K";
break;
case CardType.Queen:
type = "Q";
break;
case CardType.Jack:
type = "J";
break;
case CardType.Ten:
type = "10";
break;
case CardType.Nine:
type = "9";
break;
case CardType.Eight:
type = "8";
break;
case CardType.Seven:
type = "7";
break;
}
switch( this.CardColor )
{
case CardColor.Spades:
color = '\u2660';
break;
case CardColor.Hearts:
color = '\u2665';
break;
case CardColor.Diamonds:
color = '\u2666';
break;
case CardColor.Clubs:
color = '\u2663';
break;
}
return type + " " + color;
}