public void DisplayCard(Model.Card a_card) { if (a_card.GetColor() == Model.Card.Color.Hidden) { Console.WriteLine("Dolt Kort"); } else { String[] colors = new String[(int)Model.Card.Color.Count] { "Hjärter", "Spader", "Ruter", "Klöver" }; String[] values = new String[(int)Model.Card.Value.Count] { "två", "tre", "fyra", "fem", "sex", "sju", "åtta", "nio", "tio", "knekt", "dam", "kung", "ess" }; Console.WriteLine("{0} {1}", colors[(int)a_card.GetColor()], values[(int)a_card.GetValue()]); } }
public void DisplayCard(Model.Card a_card) { Console.WriteLine("{0} of {1}", a_card.GetValue(), a_card.GetColor()); }